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:
35
spec/unsupported_lexers/elpi/test_namespace.txt
Normal file
35
spec/unsupported_lexers/elpi/test_namespace.txt
Normal file
@ -0,0 +1,35 @@
|
||||
---input---
|
||||
namespace foo.bar {
|
||||
baz :- std.do! [].
|
||||
}
|
||||
shorten foo. { bar }.
|
||||
|
||||
---tokens---
|
||||
'namespace' Keyword.Declaration
|
||||
' ' Text.Whitespace
|
||||
'foo.bar' Text
|
||||
' ' Text.Whitespace
|
||||
'{\n' Text
|
||||
|
||||
' ' Text.Whitespace
|
||||
'baz' Text
|
||||
' ' Text.Whitespace
|
||||
':-' Keyword.Declaration
|
||||
' ' Text.Whitespace
|
||||
'std.do!' Text
|
||||
' ' Text.Whitespace
|
||||
'[]' Keyword.Declaration
|
||||
'.' Operator
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'}\n' Text
|
||||
|
||||
'shorten' Keyword.Declaration
|
||||
' ' Text.Whitespace
|
||||
'foo.' Text
|
||||
' ' Text.Whitespace
|
||||
'{ ' Text
|
||||
'bar' Text
|
||||
' ' Text.Whitespace
|
||||
'}.' Text
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user