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,37 @@
---input---
def f(using y: Char = if true then 'a' else 2): Int = ???
---tokens---
'def' Keyword
' ' Text.Whitespace
'f' Name.Function
'(' Punctuation
'using' Keyword
' ' Text.Whitespace
'y' Name
':' Punctuation
' ' Text.Whitespace
'Char' Name.Class
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'if' Keyword
' ' Text.Whitespace
'true' Keyword.Constant
' ' Text.Whitespace
'then' Keyword
' ' Text.Whitespace
"'a'" Literal.String.Char
' ' Text.Whitespace
'else' Keyword
' ' Text.Whitespace
'2' Literal.Number.Integer
')' Punctuation
':' Punctuation
' ' Text.Whitespace
'Int' Name.Class
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'???' Operator
'\n' Text.Whitespace