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:
7
spec/tests/objective-c/test_literal_number_bool.txt
Normal file
7
spec/tests/objective-c/test_literal_number_bool.txt
Normal file
@ -0,0 +1,7 @@
|
||||
---input---
|
||||
@NO;
|
||||
|
||||
---tokens---
|
||||
'@NO' Literal.Number
|
||||
';' Punctuation
|
||||
'\n' Text.Whitespace
|
@ -0,0 +1,9 @@
|
||||
---input---
|
||||
@(YES);
|
||||
|
||||
---tokens---
|
||||
'@(' Literal
|
||||
'YES' Name.Builtin
|
||||
')' Literal
|
||||
';' Punctuation
|
||||
'\n' Text.Whitespace
|
11
spec/tests/objective-c/test_literal_number_expression.txt
Normal file
11
spec/tests/objective-c/test_literal_number_expression.txt
Normal file
@ -0,0 +1,11 @@
|
||||
---input---
|
||||
@(1+2);
|
||||
|
||||
---tokens---
|
||||
'@(' Literal
|
||||
'1' Literal.Number.Integer
|
||||
'+' Operator
|
||||
'2' Literal.Number.Integer
|
||||
')' Literal
|
||||
';' Punctuation
|
||||
'\n' Text.Whitespace
|
9
spec/tests/objective-c/test_literal_number_int.txt
Normal file
9
spec/tests/objective-c/test_literal_number_int.txt
Normal file
@ -0,0 +1,9 @@
|
||||
---input---
|
||||
@(1);
|
||||
|
||||
---tokens---
|
||||
'@(' Literal
|
||||
'1' Literal.Number.Integer
|
||||
')' Literal
|
||||
';' Punctuation
|
||||
'\n' Text.Whitespace
|
@ -0,0 +1,15 @@
|
||||
---input---
|
||||
@(1+(2+3));
|
||||
|
||||
---tokens---
|
||||
'@(' Literal
|
||||
'1' Literal.Number.Integer
|
||||
'+' Operator
|
||||
'(' Punctuation
|
||||
'2' Literal.Number.Integer
|
||||
'+' Operator
|
||||
'3' Literal.Number.Integer
|
||||
')' Punctuation
|
||||
')' Literal
|
||||
';' Punctuation
|
||||
'\n' Text.Whitespace
|
9
spec/tests/objective-c/test_module_import.txt
Normal file
9
spec/tests/objective-c/test_module_import.txt
Normal file
@ -0,0 +1,9 @@
|
||||
---input---
|
||||
@import ModuleA;
|
||||
|
||||
---tokens---
|
||||
'@import' Keyword
|
||||
' ' Text.Whitespace
|
||||
'ModuleA' Name
|
||||
';' Punctuation
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user