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:
52
spec/unsupported_lexers/csound/test_numbers.txt
Normal file
52
spec/unsupported_lexers/csound/test_numbers.txt
Normal file
@ -0,0 +1,52 @@
|
||||
---input---
|
||||
123 0123456789
|
||||
0xabcdef0123456789 0XABCDEF
|
||||
1e2
|
||||
3e+4
|
||||
5e-6
|
||||
7E8
|
||||
9E+0
|
||||
1E-2
|
||||
3.
|
||||
4.56
|
||||
.789
|
||||
|
||||
---tokens---
|
||||
'123' Literal.Number.Integer
|
||||
' ' Text.Whitespace
|
||||
'0123456789' Literal.Number.Integer
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'0x' Keyword.Type
|
||||
'abcdef0123456789' Literal.Number.Hex
|
||||
' ' Text.Whitespace
|
||||
'0X' Keyword.Type
|
||||
'ABCDEF' Literal.Number.Hex
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'1e2' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'3e+4' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'5e-6' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'7E8' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'9E+0' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'1E-2' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'3.' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'4.56' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'.789' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user