Skip to content

Commit

Permalink
Increased test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
exdis committed Jul 25, 2019
1 parent 2a6339e commit db2db25
Showing 1 changed file with 59 additions and 2 deletions.
61 changes: 59 additions & 2 deletions test/fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,64 @@ module.exports = [
]
},
{
json: '{"foo": null, "bar": [1234, false, "ololo"], "quux": {"azaza": {"bar": true}}}',
json: '{"f\\"oo\\u1234"\r\n:\t-0.1234, "bar": 0e-3}',
tokens: [
{
type: LEFT_BRACE,
value: '{'
},
{
type: STRING,
value: '"f\\"oo\\u1234"'
},
{
type: WHITESPACE,
value: '\r'
},
{
type: COLON,
value: ':'
},
{
type: WHITESPACE,
value: '\t'
},
{
type: NUMBER,
value: '-0.1234'
},
{
type: COMMA,
value: ','
},
{
type: WHITESPACE,
value: ' '
},
{
type: STRING,
value: '"bar"'
},
{
type: COLON,
value: ':'
},
{
type: WHITESPACE,
value: ' '
},
{
type: NUMBER,
value: '0e-3'
},
{
type: RIGHT_BRACE,
value: '}'
}
]
},
{
json: '{"foo": null, "bar": [-1234, false, "ololo"], "quux": {"azaza": {"bar": true}}}',
tokens: [
{
type: LEFT_BRACE,
Expand Down Expand Up @@ -91,7 +148,7 @@ module.exports = [
},
{
type: NUMBER,
value: '1234'
value: '-1234'
},
{
type: COMMA,
Expand Down

0 comments on commit db2db25

Please sign in to comment.