229 Commits (bebda92febbec85f23462a5418937590106a083c)

Author SHA1 Message Date
  Hex052 bebda92feb
Merge 816b00c1c6 into 382f9462c2 4 years ago
  Leon Gross 8be2ffdcd7 fix cmake version for tests 4 years ago
  HexTheDragon 816b00c1c6 Add new functions so any old things still work 4 years ago
  HexTheDragon 85ca6f8393 Keep `json_object_object_foreach` the same 4 years ago
  HexTheDragon 2c9019f7ff Rename lh_string to json_key and move to json_object.h 4 years ago
  HexTheDragon 0a8f719eda Add additional tests and fix `test_null_keys_get` 4 years ago
  HexTheDragon afade9038a Edits to tests to reflect changes to API 4 years ago
  HexTheDragon 03f897e574 Tests that try to show that can't get/add keys with embedded null characters 4 years ago
  Alexandru Ardelean 8abeebc9b2 json_pointer: allow the feature to be disabled 4 years ago
  Alexandru Ardelean 1f8b64f62c tests: CMakeLists.txt: move test names to variable 4 years ago
  Tobias Stoeckmann 7af593c140 Fixed test1 regression. 5 years ago
  Eric Hawicz eb08a92218
Merge pull request #660 from stoeckmann/arraylist 5 years ago
  Tobias Stoeckmann 369e8477d2 Validate size arguments in arraylist functions. 5 years ago
  Tobias Stoeckmann 4298431150 Properly format errnos in _json_c_strerror 5 years ago
  Eric Haszlakiewicz 2b439ea598 Fix json_object_get_boolean() doc for the object and array cases (always returns 0), and add those cases to the test_cast test. 5 years ago
  Eric Haszlakiewicz 6068d3f6d1 Change the strerror_override handling to check $_JSON_C_STRERROR_OVERRIDE instead of using a variable, so we don't need to export it. 5 years ago
  Eric Haszlakiewicz 34334e5d3f Replace one call to json_object_new_array() with json_object_new_array_ext() to ensure it at least minimally works. 5 years ago
  Eric Haszlakiewicz a4e3700972 Fix code formatting 5 years ago
  Eric Haszlakiewicz 5f3bf70f03 Make sure TEST_PARSE_CHUNKSIZE is valid if it's set. 5 years ago
  Eric Haszlakiewicz f23486a321 In the json_tokener_state_number case, explicitly adjust what "number" characters are allowed based on the exact micro-state that we're in, and check for invalid following characters in a different way, to allow a valid json_type_number object to be returned at the top level. 5 years ago
  Eric Haszlakiewicz 6eac6986c9 Fix incremental parsing of invalid numbers with exponents, such as "0e+-" and "12.3E12E12", while still allowing "0e+" in non-strict mode. 5 years ago
  Eric Haszlakiewicz 7a72805e34 Fix memory leak in test_parse's single_incremental_parse(). 5 years ago
  Eric Haszlakiewicz a68566bf6a Issue #616: Change the parsing of surrogate pairs in unicode escapes so it uses a couple of additional states instead of assuming the low surrogate is already present, to ensure that we correctly handle various cases of incremental parsing. 5 years ago
  Eric Haszlakiewicz 197e372464 In test_parse, fix lengths passed during a couple of incremental tests. 5 years ago
  Eric Hawicz da76ee26e7
Merge pull request #633 from dota17/issue616 5 years ago
  dota17 c1b872d817 fix issue 616: support the surrogate pair in split file. 5 years ago
  Eric Haszlakiewicz 85c244f048 Eliminate unnecessary cast that was added to test_double_serializer. 5 years ago
  Eric Haszlakiewicz 66d91fdf86 The split of json_object into type-specific sub-structures is now functionally complete. 5 years ago
  Eric Haszlakiewicz 0fc9d91277 Kick json_type_string out of struct json_object. 5 years ago
  Eric Haszlakiewicz 9ecb1222bd Kick json_type_int and json_type_double out of struct json_object. 5 years ago
  Eric Haszlakiewicz 02b687b9a6 Kick json_type_array out of struct json_object; re-enable the test_deep_copy test. 5 years ago
  Eric Haszlakiewicz 853b4b5dee Start splitting struct json_object into multiple sub-types, as descibed at https://github.com/json-c/json-c/wiki/Proposal:-struct-json_object-split 5 years ago
  Björn Esser 3008401b2a test_deep_copy: Fix assertion value. 5 years ago
  Björn Esser dd040ba446 tests: Fix test_double_serializer without thread-local storage. 5 years ago
  Tobias Stoeckmann 5385a566db Prevent truncation on custom double formatters. 5 years ago
  David McCann add7b13a9a Improved support for IBM operating systems 5 years ago
  Pierce Lopez 003b58782b fix json_parse_uint64() usage of errno 5 years ago
  Eric Haszlakiewicz 26f080997d Fix snprintf on windows problem for test4. 5 years ago
  Eric Haszlakiewicz a59d5acfab Re-format after recent change to fix linkhash. 5 years ago
  Eric Haszlakiewicz 519dfe1591 Issue #599: Fix the backwards check in lh_table_insert_w_hash() that was preventing adding more than 11 objects. 5 years ago
  Eric Haszlakiewicz f6f76f9430 Add a JSON_TOKENER_ALLOW_TRAILING_CHARS flag for json_tokener_set_flags() to allow multiple objects to be parsed from input even when JSON_TOKENER_STRICT is set. 5 years ago
  Eric Haszlakiewicz 05623b3a2e Add an tok_flags field to explicitly specify tokener flags in test_parse and eliminate the previous bogus calls to json_tokener_set_flags() 5 years ago
  Eric Haszlakiewicz a9114392b4
Merge pull request #524 from dota17/addTestCase_obj_token 5 years ago
  dota17 b14363ae32 remove unsuitable case 5 years ago
  dota17 2876fcc137 clang-format two test_util_file.c and test_object_iterator.c 5 years ago
  chenguoping 8096125618 Increased the test coverage of json_util.c from 76% to 90.3%. 5 years ago
  chenguoping f56c5c1a60 Increased the test coverage of json_object_iterator.c from 0% to 100% 5 years ago
  dota17 74bbe349c4 clang-format test1.c 5 years ago
  chenguoping 110c60fcdd fix valgrind errors 5 years ago
  chenguoping 76e1472808 testcase for array_list 5 years ago