From 6a07f48fb25f8acb6477bfda7fc602259eeb9f33 Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Thu, 12 Sep 2024 16:46:06 +0200 Subject: [PATCH] Add test for Hex expression --- tests/Elm/Parser/ExpressionTests.elm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Elm/Parser/ExpressionTests.elm b/tests/Elm/Parser/ExpressionTests.elm index cd7d9c9c..439f4ab0 100644 --- a/tests/Elm/Parser/ExpressionTests.elm +++ b/tests/Elm/Parser/ExpressionTests.elm @@ -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\""