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:
12
spec/tests/r/test_call.txt
Normal file
12
spec/tests/r/test_call.txt
Normal file
@ -0,0 +1,12 @@
|
||||
---input---
|
||||
f(1, a)
|
||||
|
||||
---tokens---
|
||||
'f' Name.Function
|
||||
'(' Punctuation
|
||||
'1' Literal.Number
|
||||
',' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'a' Name
|
||||
')' Punctuation
|
||||
'\n' Text.Whitespace
|
10
spec/tests/r/test_custom_operator.txt
Normal file
10
spec/tests/r/test_custom_operator.txt
Normal file
@ -0,0 +1,10 @@
|
||||
---input---
|
||||
7 % and % 8
|
||||
|
||||
---tokens---
|
||||
'7' Literal.Number
|
||||
' ' Text.Whitespace
|
||||
'% and %' Operator
|
||||
' ' Text.Whitespace
|
||||
'8' Literal.Number
|
||||
'\n' Text.Whitespace
|
9
spec/tests/r/test_dot_indexing.txt
Normal file
9
spec/tests/r/test_dot_indexing.txt
Normal file
@ -0,0 +1,9 @@
|
||||
---input---
|
||||
.[1]
|
||||
|
||||
---tokens---
|
||||
'.' Name
|
||||
'[' Punctuation
|
||||
'1' Literal.Number
|
||||
']' Punctuation
|
||||
'\n' Text.Whitespace
|
10
spec/tests/r/test_dot_name.txt
Normal file
10
spec/tests/r/test_dot_name.txt
Normal file
@ -0,0 +1,10 @@
|
||||
---input---
|
||||
. <- 1
|
||||
|
||||
---tokens---
|
||||
'.' Name
|
||||
' ' Text.Whitespace
|
||||
'<-' Operator
|
||||
' ' Text.Whitespace
|
||||
'1' Literal.Number
|
||||
'\n' Text.Whitespace
|
9
spec/tests/r/test_indexing.txt
Normal file
9
spec/tests/r/test_indexing.txt
Normal file
@ -0,0 +1,9 @@
|
||||
---input---
|
||||
a[1]
|
||||
|
||||
---tokens---
|
||||
'a' Name
|
||||
'[' Punctuation
|
||||
'1' Literal.Number
|
||||
']' Punctuation
|
||||
'\n' Text.Whitespace
|
6
spec/tests/r/test_name1.txt
Normal file
6
spec/tests/r/test_name1.txt
Normal file
@ -0,0 +1,6 @@
|
||||
---input---
|
||||
._a_2.c
|
||||
|
||||
---tokens---
|
||||
'._a_2.c' Name
|
||||
'\n' Text.Whitespace
|
8
spec/tests/r/test_name2.txt
Normal file
8
spec/tests/r/test_name2.txt
Normal file
@ -0,0 +1,8 @@
|
||||
# Invalid names are valid if backticks are used
|
||||
|
||||
---input---
|
||||
`.1 blah`
|
||||
|
||||
---tokens---
|
||||
'`.1 blah`' Name
|
||||
'\n' Text.Whitespace
|
8
spec/tests/r/test_name3.txt
Normal file
8
spec/tests/r/test_name3.txt
Normal file
@ -0,0 +1,8 @@
|
||||
# Internal backticks can be escaped
|
||||
|
||||
---input---
|
||||
`.1 \` blah`
|
||||
|
||||
---tokens---
|
||||
'`.1 \\` blah`' Name
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user