jansson/test/suites/valid
Petri Lehtinen 5df7b79397 Refactor decoder input stream
- Add a new field position to the json_error_t structure. This is the
  position in bytes from the beginning of the input.

- Keep track of line, column and input position in the stream level.
  Previously, only line was tracked, and it was in the lexer level, so
  this info was not available for UTF-8 decoding errors.

- While at it, refactor tests so that no separate "stripped" tests are
  required. json_process is now able to strip whitespace from its
  input, and the "valid" and "invalid" test suites now use this to
  test both non-stripped and stripped input.

Closes GH-9.
2011-02-22 12:07:37 +02:00
..
complex-array Enhance tests 2009-12-21 12:50:49 +02:00
empty-array Refactor the test system 2009-12-16 22:45:29 +02:00
empty-object Refactor the test system 2009-12-16 22:45:29 +02:00
empty-object-in-array Refactor the test system 2009-12-16 22:45:29 +02:00
empty-string Refactor the test system 2009-12-16 22:45:29 +02:00
escaped-utf-control-char Refactor the test system 2009-12-16 22:45:29 +02:00
false Refactor the test system 2009-12-16 22:45:29 +02:00
negative-int Refactor the test system 2009-12-16 22:45:29 +02:00
negative-one Refactor the test system 2009-12-16 22:45:29 +02:00
negative-zero Refactor the test system 2009-12-16 22:45:29 +02:00
null Refactor the test system 2009-12-16 22:45:29 +02:00
one-byte-utf-8 Refactor the test system 2009-12-16 22:45:29 +02:00
real-capital-e Fix tests for real 2009-12-21 12:52:29 +02:00
real-capital-e-negative-exponent Fix tests for real 2009-12-21 12:52:29 +02:00
real-capital-e-positive-exponent Fix tests for real 2009-12-21 12:52:29 +02:00
real-exponent Fix tests for real 2009-12-21 12:52:29 +02:00
real-fraction-exponent Fix tests for real 2009-12-21 12:52:29 +02:00
real-negative-exponent Fix tests for real 2009-12-21 12:52:29 +02:00
real-positive-exponent Fix tests for real 2009-12-21 12:52:29 +02:00
real-underflow Estimate real number underflows with 0.0 2010-03-26 21:59:56 +02:00
short-string Refactor the test system 2009-12-16 22:45:29 +02:00
simple-ascii-string Refactor the test system 2009-12-16 22:45:29 +02:00
simple-int-0 Refactor the test system 2009-12-16 22:45:29 +02:00
simple-int-1 Refactor the test system 2009-12-16 22:45:29 +02:00
simple-int-123 Refactor the test system 2009-12-16 22:45:29 +02:00
simple-object Refactor the test system 2009-12-16 22:45:29 +02:00
simple-real Fix tests for real 2009-12-21 12:52:29 +02:00
string-escapes Refactor the test system 2009-12-16 22:45:29 +02:00
three-byte-utf-8 Refactor the test system 2009-12-16 22:45:29 +02:00
true Refactor the test system 2009-12-16 22:45:29 +02:00
two-byte-utf-8 Refactor the test system 2009-12-16 22:45:29 +02:00
utf-8-string Refactor the test system 2009-12-16 22:45:29 +02:00
utf-surrogate-four-byte-encoding Refactor the test system 2009-12-16 22:45:29 +02:00
run Refactor decoder input stream 2011-02-22 12:07:37 +02:00