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:
21
spec/tests/rust/test_func.txt
Normal file
21
spec/tests/rust/test_func.txt
Normal file
@ -0,0 +1,21 @@
|
||||
---input---
|
||||
fn func(x: u32) -> None {}
|
||||
|
||||
---tokens---
|
||||
'fn' Keyword
|
||||
' ' Text.Whitespace
|
||||
'func' Name.Function
|
||||
'(' Punctuation
|
||||
'x' Name
|
||||
':' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'u32' Keyword.Type
|
||||
')' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'->' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'None' Name.Builtin
|
||||
' ' Text.Whitespace
|
||||
'{' Punctuation
|
||||
'}' Punctuation
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user