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:
56
spec/tests/julia/test_macros.txt
Normal file
56
spec/tests/julia/test_macros.txt
Normal file
@ -0,0 +1,56 @@
|
||||
# Test that macros are parsed, including ones which are defined as symbols
|
||||
|
||||
---input---
|
||||
@generated function
|
||||
@. a + b
|
||||
@~ a + b
|
||||
@± a + b
|
||||
@mymacro(a, b)
|
||||
@+¹ᵀ a
|
||||
|
||||
---tokens---
|
||||
'@generated' Name.Decorator
|
||||
' ' Text.Whitespace
|
||||
'function' Keyword
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'@.' Name.Decorator
|
||||
' ' Text.Whitespace
|
||||
'a' Name
|
||||
' ' Text.Whitespace
|
||||
'+' Operator
|
||||
' ' Text.Whitespace
|
||||
'b' Name
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'@~' Name.Decorator
|
||||
' ' Text.Whitespace
|
||||
'a' Name
|
||||
' ' Text.Whitespace
|
||||
'+' Operator
|
||||
' ' Text.Whitespace
|
||||
'b' Name
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'@±' Name.Decorator
|
||||
' ' Text.Whitespace
|
||||
'a' Name
|
||||
' ' Text.Whitespace
|
||||
'+' Operator
|
||||
' ' Text.Whitespace
|
||||
'b' Name
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'@mymacro' Name.Decorator
|
||||
'(' Punctuation
|
||||
'a' Name
|
||||
',' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'b' Name
|
||||
')' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'@+¹ᵀ' Name.Decorator
|
||||
' ' Text.Whitespace
|
||||
'a' Name
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user