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:
186
spec/tests/nix/operators.txt
Normal file
186
spec/tests/nix/operators.txt
Normal file
@ -0,0 +1,186 @@
|
||||
---input---
|
||||
"foo" + "bar"
|
||||
|
||||
1 + 2
|
||||
|
||||
2 / 1
|
||||
|
||||
"foo" == "f" + "oo"
|
||||
|
||||
"foo" != "bar"
|
||||
|
||||
!true
|
||||
|
||||
2 * 2 < 5
|
||||
|
||||
5 > 1
|
||||
|
||||
2 - 1
|
||||
|
||||
{ x = 1; y = 2; }.x
|
||||
|
||||
{ x = 1; y = 2; }.z or 3
|
||||
|
||||
{ x = 1; y = 2; } // { z = 3; }
|
||||
|
||||
---tokens---
|
||||
'"' Literal.String.Double
|
||||
'foo' Literal.String.Double
|
||||
'"' Literal.String.Double
|
||||
' ' Text
|
||||
'+' Operator
|
||||
' ' Text
|
||||
'"' Literal.String.Double
|
||||
'bar' Literal.String.Double
|
||||
'"' Literal.String.Double
|
||||
'\n\n' Text
|
||||
|
||||
'1' Literal.Number.Integer
|
||||
' ' Text
|
||||
'+' Operator
|
||||
' ' Text
|
||||
'2' Literal.Number.Integer
|
||||
'\n\n' Text
|
||||
|
||||
'2' Literal.Number.Integer
|
||||
' ' Text
|
||||
'/' Operator
|
||||
' ' Text
|
||||
'1' Literal.Number.Integer
|
||||
'\n\n' Text
|
||||
|
||||
'"' Literal.String.Double
|
||||
'foo' Literal.String.Double
|
||||
'"' Literal.String.Double
|
||||
' ' Text
|
||||
'==' Operator
|
||||
' ' Text
|
||||
'"' Literal.String.Double
|
||||
'f' Literal.String.Double
|
||||
'"' Literal.String.Double
|
||||
' ' Text
|
||||
'+' Operator
|
||||
' ' Text
|
||||
'"' Literal.String.Double
|
||||
'oo' Literal.String.Double
|
||||
'"' Literal.String.Double
|
||||
'\n\n' Text
|
||||
|
||||
'"' Literal.String.Double
|
||||
'foo' Literal.String.Double
|
||||
'"' Literal.String.Double
|
||||
' ' Text
|
||||
'!' Operator
|
||||
'=' Operator
|
||||
' ' Text
|
||||
'"' Literal.String.Double
|
||||
'bar' Literal.String.Double
|
||||
'"' Literal.String.Double
|
||||
'\n\n' Text
|
||||
|
||||
'!' Operator
|
||||
'true' Name.Constant
|
||||
'\n\n' Text
|
||||
|
||||
'2' Literal.Number.Integer
|
||||
' ' Text
|
||||
'*' Operator
|
||||
' ' Text
|
||||
'2' Literal.Number.Integer
|
||||
' ' Text
|
||||
'<' Operator
|
||||
' ' Text
|
||||
'5' Literal.Number.Integer
|
||||
'\n\n' Text
|
||||
|
||||
'5' Literal.Number.Integer
|
||||
' ' Text
|
||||
'>' Operator
|
||||
' ' Text
|
||||
'1' Literal.Number.Integer
|
||||
'\n\n' Text
|
||||
|
||||
'2' Literal.Number.Integer
|
||||
' ' Text
|
||||
'-' Operator
|
||||
' ' Text
|
||||
'1' Literal.Number.Integer
|
||||
'\n\n' Text
|
||||
|
||||
'{' Punctuation
|
||||
' ' Text
|
||||
'x' Literal.String.Symbol
|
||||
' ' Text
|
||||
'=' Operator
|
||||
' ' Text
|
||||
'1' Literal.Number.Integer
|
||||
';' Punctuation
|
||||
' ' Text
|
||||
'y' Literal.String.Symbol
|
||||
' ' Text
|
||||
'=' Operator
|
||||
' ' Text
|
||||
'2' Literal.Number.Integer
|
||||
';' Punctuation
|
||||
' ' Text
|
||||
'}' Punctuation
|
||||
'.' Operator
|
||||
'x' Text
|
||||
'\n\n' Text
|
||||
|
||||
'{' Punctuation
|
||||
' ' Text
|
||||
'x' Literal.String.Symbol
|
||||
' ' Text
|
||||
'=' Operator
|
||||
' ' Text
|
||||
'1' Literal.Number.Integer
|
||||
';' Punctuation
|
||||
' ' Text
|
||||
'y' Literal.String.Symbol
|
||||
' ' Text
|
||||
'=' Operator
|
||||
' ' Text
|
||||
'2' Literal.Number.Integer
|
||||
';' Punctuation
|
||||
' ' Text
|
||||
'}' Punctuation
|
||||
'.' Operator
|
||||
'z' Text
|
||||
' ' Text
|
||||
'or' Operator.Word
|
||||
' ' Text
|
||||
'3' Literal.Number.Integer
|
||||
'\n\n' Text
|
||||
|
||||
'{' Punctuation
|
||||
' ' Text
|
||||
'x' Literal.String.Symbol
|
||||
' ' Text
|
||||
'=' Operator
|
||||
' ' Text
|
||||
'1' Literal.Number.Integer
|
||||
';' Punctuation
|
||||
' ' Text
|
||||
'y' Literal.String.Symbol
|
||||
' ' Text
|
||||
'=' Operator
|
||||
' ' Text
|
||||
'2' Literal.Number.Integer
|
||||
';' Punctuation
|
||||
' ' Text
|
||||
'}' Punctuation
|
||||
' ' Text
|
||||
'//' Operator
|
||||
' ' Text
|
||||
'{' Punctuation
|
||||
' ' Text
|
||||
'z' Literal.String.Symbol
|
||||
' ' Text
|
||||
'=' Operator
|
||||
' ' Text
|
||||
'3' Literal.Number.Integer
|
||||
';' Punctuation
|
||||
' ' Text
|
||||
'}' Punctuation
|
||||
'\n' Text
|
Reference in New Issue
Block a user