mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-20 07:03:05 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
54
spec/unsupported_lexers/mojo/test_soft_kwds.txt
Normal file
54
spec/unsupported_lexers/mojo/test_soft_kwds.txt
Normal file
@ -0,0 +1,54 @@
|
||||
---input---
|
||||
match spam:
|
||||
case Some(x):
|
||||
print(f"found {x}")
|
||||
case None:
|
||||
print("found nothing")
|
||||
case _:
|
||||
assert False
|
||||
|
||||
---tokens---
|
||||
'match' Keyword
|
||||
' ' Text.Whitespace
|
||||
'spam' Name
|
||||
':' Punctuation
|
||||
'\n ' Text.Whitespace
|
||||
'case' Name
|
||||
' ' Text.Whitespace
|
||||
'Some' Name
|
||||
'(' Punctuation
|
||||
'x' Name
|
||||
'):' Punctuation
|
||||
'\n ' Text.Whitespace
|
||||
'print' Name.Builtin
|
||||
'(' Punctuation
|
||||
'f' Literal.String.Affix
|
||||
'"' Literal.String.Double
|
||||
'found ' Literal.String.Double
|
||||
'{' Literal.String.Interpol
|
||||
'x' Name
|
||||
'}' Literal.String.Interpol
|
||||
'"' Literal.String.Double
|
||||
')' Punctuation
|
||||
'\n ' Text.Whitespace
|
||||
'case' Name
|
||||
' ' Text.Whitespace
|
||||
'None' Keyword.Constant
|
||||
':' Punctuation
|
||||
'\n ' Text.Whitespace
|
||||
'print' Name.Builtin
|
||||
'(' Punctuation
|
||||
'"' Literal.String.Double
|
||||
'found nothing' Literal.String.Double
|
||||
'"' Literal.String.Double
|
||||
')' Punctuation
|
||||
'\n ' Text.Whitespace
|
||||
'case' Name
|
||||
' ' Text.Whitespace
|
||||
'_' Name
|
||||
':' Punctuation
|
||||
'\n ' Text.Whitespace
|
||||
'assert' Keyword
|
||||
' ' Text.Whitespace
|
||||
'False' Keyword.Constant
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user