mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
34
spec/unsupported_lexers/vbscript/test_floats.txt
Normal file
34
spec/unsupported_lexers/vbscript/test_floats.txt
Normal file
@ -0,0 +1,34 @@
|
||||
---input---
|
||||
1.
|
||||
1.e1
|
||||
.1
|
||||
1.2
|
||||
1.2e3
|
||||
1.2e+3
|
||||
1.2e-3
|
||||
1e2
|
||||
|
||||
---tokens---
|
||||
'1.' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'1.e1' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'.1' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'1.2' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'1.2e3' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'1.2e+3' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'1.2e-3' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'1e2' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
@ -0,0 +1,7 @@
|
||||
---input---
|
||||
1e2.1e2
|
||||
|
||||
---tokens---
|
||||
'1e2' Literal.Number.Float
|
||||
'.1e2' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
14
spec/unsupported_lexers/vbscript/test_integers.txt
Normal file
14
spec/unsupported_lexers/vbscript/test_integers.txt
Normal file
@ -0,0 +1,14 @@
|
||||
---input---
|
||||
1
|
||||
23
|
||||
456
|
||||
|
||||
---tokens---
|
||||
'1' Literal.Number.Integer
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'23' Literal.Number.Integer
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'456' Literal.Number.Integer
|
||||
'\n' Text.Whitespace
|
10
spec/unsupported_lexers/vbscript/test_invalid_character.txt
Normal file
10
spec/unsupported_lexers/vbscript/test_invalid_character.txt
Normal file
@ -0,0 +1,10 @@
|
||||
---input---
|
||||
a;bc
|
||||
d
|
||||
|
||||
---tokens---
|
||||
'a' Name
|
||||
';bc\n' Error
|
||||
|
||||
'd' Name
|
||||
'\n' Text.Whitespace
|
18
spec/unsupported_lexers/vbscript/test_names.txt
Normal file
18
spec/unsupported_lexers/vbscript/test_names.txt
Normal file
@ -0,0 +1,18 @@
|
||||
---input---
|
||||
thingy
|
||||
thingy123
|
||||
_thingy
|
||||
_123
|
||||
|
||||
---tokens---
|
||||
'thingy' Name
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'thingy123' Name
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'_thingy' Name
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'_123' Name
|
||||
'\n' Text.Whitespace
|
@ -0,0 +1,7 @@
|
||||
---input---
|
||||
.e1
|
||||
|
||||
---tokens---
|
||||
'.' Punctuation
|
||||
'e1' Name
|
||||
'\n' Text.Whitespace
|
@ -0,0 +1,7 @@
|
||||
---input---
|
||||
"x\nx
|
||||
|
||||
---tokens---
|
||||
'"' Literal.String.Double
|
||||
'x\\nx' Literal.String.Double
|
||||
'\n' Error
|
Reference in New Issue
Block a user