Skip to content

Commit

Permalink
Add second test
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSStewart committed Jun 20, 2023
1 parent a200469 commit cd01ce0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/Elm/Parser/ExpressionTests.elm
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ all =
, test "5-1" <|
\() ->
parseFullStringWithNullState "5-1" expression
|> Maybe.map noRangeExpression
|> Maybe.map Node.value
|> Expect.equal
(Just
Expand All @@ -47,6 +48,20 @@ all =
(Node emptyRange (Integer 1))
)
)
, test "5.1-1.2" <|
\() ->
parseFullStringWithNullState "5.1-1.2" expression
|> Maybe.map noRangeExpression
|> Maybe.map Node.value
|> Expect.equal
(Just
(OperatorApplication
"-"
Left
(Node emptyRange (Floatable 5))
(Node emptyRange (Floatable 1))
)
)
, test "prefix expression" <|
\() ->
parseFullStringWithNullState "(,)" expression
Expand Down

0 comments on commit cd01ce0

Please sign in to comment.