mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
21
spec/tests/python/test_walrus_operator.txt
Normal file
21
spec/tests/python/test_walrus_operator.txt
Normal file
@ -0,0 +1,21 @@
|
||||
# Tests that ':=' is recognized as an Operator
|
||||
|
||||
---input---
|
||||
if (a := 2) > 4:
|
||||
|
||||
---tokens---
|
||||
'if' Keyword
|
||||
' ' Text
|
||||
'(' Punctuation
|
||||
'a' Name
|
||||
' ' Text
|
||||
':=' Operator
|
||||
' ' Text
|
||||
'2' Literal.Number.Integer
|
||||
')' Punctuation
|
||||
' ' Text
|
||||
'>' Operator
|
||||
' ' Text
|
||||
'4' Literal.Number.Integer
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user