Reorganize tests into a real spec suite

This commit is contained in:
2024-08-04 19:18:43 -03:00
parent 57c160173c
commit e7c2053222
693 changed files with 136 additions and 116 deletions

View 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

View File

@ -0,0 +1,7 @@
---input---
1e2.1e2
---tokens---
'1e2' Literal.Number.Float
'.1e2' Literal.Number.Float
'\n' Text.Whitespace

View 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

View File

@ -0,0 +1,10 @@
---input---
a;bc
d
---tokens---
'a' Name
';bc\n' Error
'd' Name
'\n' Text.Whitespace

View 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

View File

@ -0,0 +1,7 @@
---input---
.e1
---tokens---
'.' Punctuation
'e1' Name
'\n' Text.Whitespace

View File

@ -0,0 +1,7 @@
---input---
"x\nx
---tokens---
'"' Literal.String.Double
'x\\nx' Literal.String.Double
'\n' Error