Skip to content

Commit

Permalink
Add test for Hex expression
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Sep 12, 2024
1 parent 76756fb commit 6a07f48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Elm/Parser/ExpressionTests.elm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ all =
\() ->
"101"
|> expectAst (Node { start = { row = 1, column = 1 }, end = { row = 1, column = 4 } } (Integer 101))
, test "Hex integer literal" <|
\() ->
"0x56"
|> expectAst (Node { start = { row = 1, column = 1 }, end = { row = 1, column = 5 } } (Hex 86))
, test "String literal" <|
\() ->
"\"Bar\""
Expand Down

0 comments on commit 6a07f48

Please sign in to comment.