mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-20 07:03:05 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
20
spec/tests/c/test_numbers.txt
Normal file
20
spec/tests/c/test_numbers.txt
Normal file
@ -0,0 +1,20 @@
|
||||
---input---
|
||||
42 23.42 23. .42 023 0xdeadbeef 23e+42 42e-23
|
||||
|
||||
---tokens---
|
||||
'42' Literal.Number.Integer
|
||||
' ' Text.Whitespace
|
||||
'23.42' Literal.Number.Float
|
||||
' ' Text.Whitespace
|
||||
'23.' Literal.Number.Float
|
||||
' ' Text.Whitespace
|
||||
'.42' Literal.Number.Float
|
||||
' ' Text.Whitespace
|
||||
'023' Literal.Number.Oct
|
||||
' ' Text.Whitespace
|
||||
'0xdeadbeef' Literal.Number.Hex
|
||||
' ' Text.Whitespace
|
||||
'23e+42' Literal.Number.Float
|
||||
' ' Text.Whitespace
|
||||
'42e-23' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user