diff options
Diffstat (limited to 'tests/snippets/java/test_numeric_literals.txt')
-rw-r--r-- | tests/snippets/java/test_numeric_literals.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/snippets/java/test_numeric_literals.txt b/tests/snippets/java/test_numeric_literals.txt new file mode 100644 index 0000000..1dc933d --- /dev/null +++ b/tests/snippets/java/test_numeric_literals.txt @@ -0,0 +1,34 @@ +---input--- +0 5L 9__542_72l 0xbEEf 0X9_A 0_35 01 0b0___101_0 0. .7_17F 3e-1_3d 1f 6_01.9e+3 0x.1Fp3 0XEP8D + +---tokens--- +'0' Literal.Number.Integer +' ' Text.Whitespace +'5L' Literal.Number.Integer +' ' Text.Whitespace +'9__542_72l' Literal.Number.Integer +' ' Text.Whitespace +'0xbEEf' Literal.Number.Hex +' ' Text.Whitespace +'0X9_A' Literal.Number.Hex +' ' Text.Whitespace +'0_35' Literal.Number.Oct +' ' Text.Whitespace +'01' Literal.Number.Oct +' ' Text.Whitespace +'0b0___101_0' Literal.Number.Bin +' ' Text.Whitespace +'0.' Literal.Number.Float +' ' Text.Whitespace +'.7_17F' Literal.Number.Float +' ' Text.Whitespace +'3e-1_3d' Literal.Number.Float +' ' Text.Whitespace +'1f' Literal.Number.Float +' ' Text.Whitespace +'6_01.9e+3' Literal.Number.Float +' ' Text.Whitespace +'0x.1Fp3' Literal.Number.Float +' ' Text.Whitespace +'0XEP8D' Literal.Number.Float +'\n' Text.Whitespace |