mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 22:57:50 -03:00
Imported test cases from pygments
This commit is contained in:
34
tests/vbscript/test_floats.txt
Normal file
34
tests/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
|
7
tests/vbscript/test_floats_multiple.txt
Normal file
7
tests/vbscript/test_floats_multiple.txt
Normal file
@ -0,0 +1,7 @@
|
||||
---input---
|
||||
1e2.1e2
|
||||
|
||||
---tokens---
|
||||
'1e2' Literal.Number.Float
|
||||
'.1e2' Literal.Number.Float
|
||||
'\n' Text.Whitespace
|
14
tests/vbscript/test_integers.txt
Normal file
14
tests/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
tests/vbscript/test_invalid_character.txt
Normal file
10
tests/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
tests/vbscript/test_names.txt
Normal file
18
tests/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
|
7
tests/vbscript/test_reject_almost_float.txt
Normal file
7
tests/vbscript/test_reject_almost_float.txt
Normal file
@ -0,0 +1,7 @@
|
||||
---input---
|
||||
.e1
|
||||
|
||||
---tokens---
|
||||
'.' Punctuation
|
||||
'e1' Name
|
||||
'\n' Text.Whitespace
|
7
tests/vbscript/test_unterminated_string.txt
Normal file
7
tests/vbscript/test_unterminated_string.txt
Normal file
@ -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