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,7 @@
---input---
@NO;
---tokens---
'@NO' Literal.Number
';' Punctuation
'\n' Text.Whitespace

View File

@ -0,0 +1,9 @@
---input---
@(YES);
---tokens---
'@(' Literal
'YES' Name.Builtin
')' Literal
';' Punctuation
'\n' Text.Whitespace

View File

@ -0,0 +1,11 @@
---input---
@(1+2);
---tokens---
'@(' Literal
'1' Literal.Number.Integer
'+' Operator
'2' Literal.Number.Integer
')' Literal
';' Punctuation
'\n' Text.Whitespace

View File

@ -0,0 +1,9 @@
---input---
@(1);
---tokens---
'@(' Literal
'1' Literal.Number.Integer
')' Literal
';' Punctuation
'\n' Text.Whitespace

View File

@ -0,0 +1,15 @@
---input---
@(1+(2+3));
---tokens---
'@(' Literal
'1' Literal.Number.Integer
'+' Operator
'(' Punctuation
'2' Literal.Number.Integer
'+' Operator
'3' Literal.Number.Integer
')' Punctuation
')' Literal
';' Punctuation
'\n' Text.Whitespace

View File

@ -0,0 +1,9 @@
---input---
@import ModuleA;
---tokens---
'@import' Keyword
' ' Text.Whitespace
'ModuleA' Name
';' Punctuation
'\n' Text.Whitespace