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:
37
spec/tests/julia/test_unicode.txt
Normal file
37
spec/tests/julia/test_unicode.txt
Normal file
@ -0,0 +1,37 @@
|
||||
# Test that unicode character, √, in an expression is recognized
|
||||
|
||||
---input---
|
||||
s = √((1/n) * sum(count .^ 2) - mu .^2)
|
||||
|
||||
---tokens---
|
||||
's' Name
|
||||
' ' Text.Whitespace
|
||||
'=' Operator
|
||||
' ' Text.Whitespace
|
||||
'√' Operator
|
||||
'(' Punctuation
|
||||
'(' Punctuation
|
||||
'1' Literal.Number.Integer
|
||||
'/' Operator
|
||||
'n' Name
|
||||
')' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'*' Operator
|
||||
' ' Text.Whitespace
|
||||
'sum' Name
|
||||
'(' Punctuation
|
||||
'count' Name
|
||||
' ' Text.Whitespace
|
||||
'.^' Operator
|
||||
' ' Text.Whitespace
|
||||
'2' Literal.Number.Integer
|
||||
')' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'-' Operator
|
||||
' ' Text.Whitespace
|
||||
'mu' Name
|
||||
' ' Text.Whitespace
|
||||
'.^' Operator
|
||||
'2' Literal.Number.Integer
|
||||
')' Punctuation
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user