mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 22:53:05 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
30
spec/tests/json/test_basic.txt
Normal file
30
spec/tests/json/test_basic.txt
Normal file
@ -0,0 +1,30 @@
|
||||
---input---
|
||||
{"foo": "bar", "foo2": [1, 2, 3], "\u0123": "\u0123"}
|
||||
|
||||
---tokens---
|
||||
'{' Punctuation
|
||||
'"foo"' Name.Tag
|
||||
':' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'"bar"' Literal.String.Double
|
||||
',' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'"foo2"' Name.Tag
|
||||
':' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'[' Punctuation
|
||||
'1' Literal.Number.Integer
|
||||
',' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'2' Literal.Number.Integer
|
||||
',' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'3' Literal.Number.Integer
|
||||
'],' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'"\\u0123"' Name.Tag
|
||||
':' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'"\\u0123"' Literal.String.Double
|
||||
'}' Punctuation
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user