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:
34
spec/tests/nix/built_in.txt
Normal file
34
spec/tests/nix/built_in.txt
Normal file
@ -0,0 +1,34 @@
|
||||
---input---
|
||||
import ./foo.nix
|
||||
|
||||
map (x: x + x) [ 1 2 3 ]
|
||||
|
||||
---tokens---
|
||||
'import' Name.Builtin
|
||||
' ' Text
|
||||
'./foo.nix' Literal
|
||||
'\n\n' Text
|
||||
|
||||
'map' Name.Builtin
|
||||
' ' Text
|
||||
'(' Punctuation
|
||||
'x' Text
|
||||
':' Punctuation
|
||||
' ' Text
|
||||
'x' Text
|
||||
' ' Text
|
||||
'+' Operator
|
||||
' ' Text
|
||||
'x' Text
|
||||
')' Punctuation
|
||||
' ' Text
|
||||
'[' Punctuation
|
||||
' ' Text
|
||||
'1' Literal.Number.Integer
|
||||
' ' Text
|
||||
'2' Literal.Number.Integer
|
||||
' ' Text
|
||||
'3' Literal.Number.Integer
|
||||
' ' Text
|
||||
']' Punctuation
|
||||
'\n' Text
|
Reference in New Issue
Block a user