jansson/test/suites/invalid
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
..
apostrophe Refactor decoder input stream 2011-02-22 12:07:37 +02:00
ascii-unicode-identifier Refactor decoder input stream 2011-02-22 12:07:37 +02:00
brace-comma Refactor decoder input stream 2011-02-22 12:07:37 +02:00
bracket-comma Refactor decoder input stream 2011-02-22 12:07:37 +02:00
bracket-one-comma Refactor decoder input stream 2011-02-22 12:07:37 +02:00
empty Refactor decoder input stream 2011-02-22 12:07:37 +02:00
escaped-null-byte-in-string Refactor decoder input stream 2011-02-22 12:07:37 +02:00
extra-comma-in-array Refactor decoder input stream 2011-02-22 12:07:37 +02:00
extra-comma-in-multiline-array Refactor decoder input stream 2011-02-22 12:07:37 +02:00
garbage-after-newline Refactor decoder input stream 2011-02-22 12:07:37 +02:00
garbage-at-the-end Refactor decoder input stream 2011-02-22 12:07:37 +02:00
integer-starting-with-zero Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-escape Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-identifier Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-negative-integer Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-negative-real Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-second-surrogate Refactor decoder input stream 2011-02-22 12:07:37 +02:00
lone-open-brace Refactor decoder input stream 2011-02-22 12:07:37 +02:00
lone-open-bracket Refactor decoder input stream 2011-02-22 12:07:37 +02:00
lone-second-surrogate Refactor decoder input stream 2011-02-22 12:07:37 +02:00
minus-sign-without-number Refactor decoder input stream 2011-02-22 12:07:37 +02:00
negative-integer-starting-with-zero Refactor decoder input stream 2011-02-22 12:07:37 +02:00
null Refactor decoder input stream 2011-02-22 12:07:37 +02:00
null-byte-in-string Refactor decoder input stream 2011-02-22 12:07:37 +02:00
null-byte-outside-string Refactor decoder input stream 2011-02-22 12:07:37 +02:00
object-apostrophes Refactor decoder input stream 2011-02-22 12:07:37 +02:00
object-garbage-at-end Refactor decoder input stream 2011-02-22 12:07:37 +02:00
object-in-unterminated-array Refactor decoder input stream 2011-02-22 12:07:37 +02:00
object-no-colon Refactor decoder input stream 2011-02-22 12:07:37 +02:00
object-no-value Refactor decoder input stream 2011-02-22 12:07:37 +02:00
object-unterminated-value Refactor decoder input stream 2011-02-22 12:07:37 +02:00
real-garbage-after-e Refactor decoder input stream 2011-02-22 12:07:37 +02:00
real-negative-overflow Refactor decoder input stream 2011-02-22 12:07:37 +02:00
real-positive-overflow Refactor decoder input stream 2011-02-22 12:07:37 +02:00
real-truncated-at-e Refactor decoder input stream 2011-02-22 12:07:37 +02:00
real-truncated-at-point Refactor decoder input stream 2011-02-22 12:07:37 +02:00
tab-character-in-string Refactor decoder input stream 2011-02-22 12:07:37 +02:00
too-big-negative-integer Refactor decoder input stream 2011-02-22 12:07:37 +02:00
too-big-positive-integer Refactor decoder input stream 2011-02-22 12:07:37 +02:00
truncated-unicode-surrogate Refactor decoder input stream 2011-02-22 12:07:37 +02:00
unicode-identifier Refactor decoder input stream 2011-02-22 12:07:37 +02:00
unterminated-array Refactor decoder input stream 2011-02-22 12:07:37 +02:00
unterminated-array-and-object Refactor decoder input stream 2011-02-22 12:07:37 +02:00
unterminated-empty-key Refactor decoder input stream 2011-02-22 12:07:37 +02:00
unterminated-key Refactor decoder input stream 2011-02-22 12:07:37 +02:00
unterminated-object-and-array Refactor decoder input stream 2011-02-22 12:07:37 +02:00
unterminated-string Refactor decoder input stream 2011-02-22 12:07:37 +02:00
run Refactor decoder input stream 2011-02-22 12:07:37 +02:00