jansson/test/suites/invalid-unicode
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
..
encoded-surrogate-half Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-utf-8-after-backslash Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-utf-8-in-array Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-utf-8-in-bigger-int Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-utf-8-in-escape Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-utf-8-in-exponent Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-utf-8-in-identifier Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-utf-8-in-int Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-utf-8-in-real-after-e Refactor decoder input stream 2011-02-22 12:07:37 +02:00
invalid-utf-8-in-string Refactor decoder input stream 2011-02-22 12:07:37 +02:00
lone-invalid-utf-8 Refactor decoder input stream 2011-02-22 12:07:37 +02:00
lone-utf-8-continuation-byte Refactor decoder input stream 2011-02-22 12:07:37 +02:00
not-in-unicode-range Refactor decoder input stream 2011-02-22 12:07:37 +02:00
overlong-3-byte-encoding Refactor decoder input stream 2011-02-22 12:07:37 +02:00
overlong-4-byte-encoding Refactor decoder input stream 2011-02-22 12:07:37 +02:00
overlong-ascii-encoding Refactor decoder input stream 2011-02-22 12:07:37 +02:00
restricted-utf-8 Refactor decoder input stream 2011-02-22 12:07:37 +02:00
truncated-utf-8 Refactor decoder input stream 2011-02-22 12:07:37 +02:00
run Update copyright notices for 2011 2011-01-22 13:43:14 +02:00