Skip to content

Commit

Permalink
extend test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsidorenco committed Aug 7, 2024
1 parent a9f37ad commit 2e5a9c3
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions test/corpus/constants.txt
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ number positive parsing

do
1 + 1
1+ 1
1 +1
1+1
+1
Expand All @@ -638,27 +639,35 @@ do
(const
(int)))
(sequential_expression
(application_expression
(infix_expression
(const
(int))
(infix_op)
(const
(int)))
(sequential_expression
(infix_expression
(application_expression
(const
(int))
(infix_op)
(const
(int)))
(const
(int))))))))
(sequential_expression
(infix_expression
(const
(int))
(infix_op)
(const
(int)))
(const
(int)))))))))

================================================================================
number negative parsing
================================================================================

do
1 - 1
1- 1
1 -1
1-1
-1
Expand All @@ -676,17 +685,24 @@ do
(const
(int)))
(sequential_expression
(application_expression
(infix_expression
(const
(int))
(infix_op)
(const
(int)))
(sequential_expression
(infix_expression
(application_expression
(const
(int))
(infix_op)
(const
(int)))
(const
(int))))))))
(sequential_expression
(infix_expression
(const
(int))
(infix_op)
(const
(int)))
(const
(int)))))))))

0 comments on commit 2e5a9c3

Please sign in to comment.