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:
14
spec/tests/coffeescript/test_beware_infinite_loop.txt
Normal file
14
spec/tests/coffeescript/test_beware_infinite_loop.txt
Normal file
@ -0,0 +1,14 @@
|
||||
# This demonstrates the case that "This isn't really guarding" comment
|
||||
# refers to.
|
||||
|
||||
---input---
|
||||
/a/x;
|
||||
|
||||
---tokens---
|
||||
'' Text
|
||||
'/' Operator
|
||||
'a' Name.Other
|
||||
'/' Operator
|
||||
'x' Name.Other
|
||||
';' Punctuation
|
||||
'\n' Text.Whitespace
|
13
spec/tests/coffeescript/test_mixed_slashes.txt
Normal file
13
spec/tests/coffeescript/test_mixed_slashes.txt
Normal file
@ -0,0 +1,13 @@
|
||||
---input---
|
||||
a?/foo/:1/2;
|
||||
|
||||
---tokens---
|
||||
'a' Name.Other
|
||||
'?' Operator
|
||||
'/foo/' Literal.String.Regex
|
||||
':' Operator
|
||||
'1' Literal.Number.Integer
|
||||
'/' Operator
|
||||
'2' Literal.Number.Integer
|
||||
';' Punctuation
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user