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:
100
spec/unsupported_lexers/ezhil/test_function.txt
Normal file
100
spec/unsupported_lexers/ezhil/test_function.txt
Normal file
@ -0,0 +1,100 @@
|
||||
---input---
|
||||
# (C) முத்தையா அண்ணாமலை 2013, 2015
|
||||
நிரல்பாகம் gcd ( x, y )
|
||||
மு = max(x,y)
|
||||
q = min(x,y)
|
||||
|
||||
@( q == 0 ) ஆனால்
|
||||
பின்கொடு மு
|
||||
முடி
|
||||
பின்கொடு gcd( மு - q , q )
|
||||
முடி
|
||||
|
||||
---tokens---
|
||||
'# (C) முத்தையா அண்ணாமலை 2013, 2015' Comment.Single
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'நிரல்பாகம்' Keyword
|
||||
' ' Text.Whitespace
|
||||
'gcd' Name
|
||||
' ' Text.Whitespace
|
||||
'(' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'x' Name
|
||||
',' Operator
|
||||
' ' Text.Whitespace
|
||||
'y' Name
|
||||
' ' Text.Whitespace
|
||||
')' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'மு' Name
|
||||
' ' Text.Whitespace
|
||||
'=' Operator
|
||||
' ' Text.Whitespace
|
||||
'max' Name.Builtin
|
||||
'(' Punctuation
|
||||
'x' Name
|
||||
',' Operator
|
||||
'y' Name
|
||||
')' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'q' Name
|
||||
' ' Text.Whitespace
|
||||
'=' Operator
|
||||
' ' Text.Whitespace
|
||||
'min' Name.Builtin
|
||||
'(' Punctuation
|
||||
'x' Name
|
||||
',' Operator
|
||||
'y' Name
|
||||
')' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'@' Operator
|
||||
'(' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'q' Name
|
||||
' ' Text.Whitespace
|
||||
'==' Operator
|
||||
' ' Text.Whitespace
|
||||
'0' Literal.Number.Integer
|
||||
' ' Text.Whitespace
|
||||
')' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'ஆனால்' Keyword
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'பின்கொடு' Keyword
|
||||
' ' Text.Whitespace
|
||||
'மு' Name
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'முடி' Keyword
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'பின்கொடு' Keyword
|
||||
' ' Text.Whitespace
|
||||
'gcd' Name
|
||||
'(' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'மு' Name
|
||||
' ' Text.Whitespace
|
||||
'-' Operator
|
||||
' ' Text.Whitespace
|
||||
'q' Name
|
||||
' ' Text.Whitespace
|
||||
',' Operator
|
||||
' ' Text.Whitespace
|
||||
'q' Name
|
||||
' ' Text.Whitespace
|
||||
')' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'முடி' Keyword
|
||||
'\n' Text.Whitespace
|
21
spec/unsupported_lexers/ezhil/test_gcd_expr.txt
Normal file
21
spec/unsupported_lexers/ezhil/test_gcd_expr.txt
Normal file
@ -0,0 +1,21 @@
|
||||
---input---
|
||||
1^3+(5-5)*gcd(a,b)
|
||||
|
||||
---tokens---
|
||||
'1' Literal.Number.Integer
|
||||
'^' Operator
|
||||
'3' Literal.Number.Integer
|
||||
'+' Operator
|
||||
'(' Punctuation
|
||||
'5' Literal.Number.Integer
|
||||
'-' Operator
|
||||
'5' Literal.Number.Integer
|
||||
')' Punctuation
|
||||
'*' Operator
|
||||
'gcd' Name
|
||||
'(' Punctuation
|
||||
'a' Name
|
||||
',' Operator
|
||||
'b' Name
|
||||
')' Punctuation
|
||||
'\n' Text.Whitespace
|
28
spec/unsupported_lexers/ezhil/test_if_statement.txt
Normal file
28
spec/unsupported_lexers/ezhil/test_if_statement.txt
Normal file
@ -0,0 +1,28 @@
|
||||
---input---
|
||||
@( 0 > 3 ) ஆனால்
|
||||
பதிப்பி "wont print"
|
||||
முடி
|
||||
|
||||
---tokens---
|
||||
'@' Operator
|
||||
'(' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'0' Literal.Number.Integer
|
||||
' ' Text.Whitespace
|
||||
'>' Operator
|
||||
' ' Text.Whitespace
|
||||
'3' Literal.Number.Integer
|
||||
' ' Text.Whitespace
|
||||
')' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'ஆனால்' Keyword
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'பதிப்பி' Keyword
|
||||
' ' Text.Whitespace
|
||||
'"wont print"' Literal.String
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'முடி' Keyword
|
||||
'\n' Text.Whitespace
|
8
spec/unsupported_lexers/ezhil/test_sum.txt
Normal file
8
spec/unsupported_lexers/ezhil/test_sum.txt
Normal file
@ -0,0 +1,8 @@
|
||||
---input---
|
||||
1+3
|
||||
|
||||
---tokens---
|
||||
'1' Literal.Number.Integer
|
||||
'+' Operator
|
||||
'3' Literal.Number.Integer
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user