1. Serge Zaitsev
  2. jsmn

Source

jsmn / jsmn_test.c

Author Commit Message Date Builds
Serge A. Zaitsev
fixed tests: missing jsmn_init() before parsing; added tests for empty arrays/objects
Serge A. Zaitsev
fixed strict mode: space symbols are allowed after primitives; added some new tests
Serge A. Zaitsev
tokens array items are now being initialized during allocation, removed redundant code that significantly slowed down the parser
Serge A. Zaitsev
fixed: superior node size is now an index, not a pointer (safe to realloc)
Serge A. Zaitsev
added reading with small number of tokens test, fixed NOMEM issue #2
Serge A. Zaitsev
added test for partial array reading
Serge A. Zaitsev
fixed typo, added JSMN_STRICT mode
Serge A. Zaitsev
added one more test case for partial string parser
Serge A. Zaitsev
tested partial parser for strings, added primitive string parser test, fixed token allocation
Serge A. Zaitsev
added tests for primitive types, primitive types now can be stored outside the objects without braces
Serge A. Zaitsev
removed JSON string and token array from parser internals, because they must not be saved between parse() calls
Serge A. Zaitsev
changed API: parse now is more flexible, but init jsut resets the parser; added new test macro to compate strings, fixed Makefile
Serge A. Zaitsev
switched to C unit-tests instead of bash