Skip to content

Commit

Permalink
add currently failing test and one to verify currently correct behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhigson committed Jan 10, 2014
1 parent 89f1d79 commit 9468f1b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/clarinet.js
Expand Up @@ -630,6 +630,32 @@ var seps = [undefined, /\t|\n|\r/, '']
, ['ready' , undefined]
]
}
, incomplete_json_terminates_ending_in_number :
{ text : '[[1,2,3],[4,5'
, events :
[ ["openarray" , undefined]
, ["openarray" , undefined]
, ["value" , 1]
, ["value" , 2]
, ["value" , 3]
, ["closearray" , undefined]
, ["openarray" , undefined]
, ["value" , 4]
, ["error" , undefined]
]
}
, incomplete_json_terminates_ending_in_comma :
{ text : '[[1,2,3],'
, events :
[ ["openarray" , undefined]
, ["openarray" , undefined]
, ["value" , 1]
, ["value" , 2]
, ["value" , 3]
, ["closearray" , undefined]
, ["error" , undefined]
]
}
, json_org :
{ text :
('{\r\n' +
Expand Down

0 comments on commit 9468f1b

Please sign in to comment.