mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
20
spec/tests/idris/test_compiler_directive.txt
Normal file
20
spec/tests/idris/test_compiler_directive.txt
Normal file
@ -0,0 +1,20 @@
|
||||
---input---
|
||||
%link C "object.o"
|
||||
%name Vect xs
|
||||
|
||||
---tokens---
|
||||
'%link' Keyword.Reserved
|
||||
' ' Text.Whitespace
|
||||
'C' Keyword.Type
|
||||
' ' Text.Whitespace
|
||||
'"' Literal.String
|
||||
'object.o' Literal.String
|
||||
'"' Literal.String
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'%name' Keyword.Reserved
|
||||
' ' Text.Whitespace
|
||||
'Vect' Keyword.Type
|
||||
' ' Text.Whitespace
|
||||
'xs' Text
|
||||
'\n' Text.Whitespace
|
29
spec/tests/idris/test_reserved_word.txt
Normal file
29
spec/tests/idris/test_reserved_word.txt
Normal file
@ -0,0 +1,29 @@
|
||||
---input---
|
||||
namespace Foobar
|
||||
links : String
|
||||
links = "abc"
|
||||
|
||||
---tokens---
|
||||
'namespace' Keyword.Reserved
|
||||
' ' Text.Whitespace
|
||||
'Foobar' Keyword.Type
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'links' Name.Function
|
||||
' ' Text.Whitespace
|
||||
':' Operator.Word
|
||||
' ' Text.Whitespace
|
||||
'String' Keyword.Type
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
' ' Text.Whitespace
|
||||
'links' Text
|
||||
' ' Text.Whitespace
|
||||
'=' Operator.Word
|
||||
' ' Text.Whitespace
|
||||
'"' Literal.String
|
||||
'abc' Literal.String
|
||||
'"' Literal.String
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user