246 Commits (469bc0e4bb4a33c05f03cbf7ea57ad1d0f78af82)

Author SHA1 Message Date
  Eric Hawicz 469bc0e4bb Work around a somewhat misleading warning about "a function declaration without a prototype is deprecated in all versions of C" in test1.c 2 years ago
  Eric Hawicz ce3184243a Fix json_patch_apply handling of removing the whole document (i.e. "path":""). 2 years ago
  Eric Hawicz 9dbf2880cc Adjust the behavior of the args passed to json_patch_apply to make it easier to do in place modifications, and add a struct json_patch_error to report more details on failures. 2 years ago
  Eric Hawicz efc530594b Create a json_pointer_private.h and move a few things there, fix test warnings, note array_list_insert_idx is private. 2 years ago
  Alexandru Ardelean 3b8363fcdc tests: test_json_patch: add test suite for JSON patch 4 years ago
  Alexandru Ardelean 1c38dea651 json_pointer: move array out-of-bounds check outside of is_valid_index() 4 years ago
  Alexandru Ardelean d5c5b2caec tests: test1: add test cases for json_object_array_insert_idx() 4 years ago
  Eric Haszlakiewicz d0f32a5a43 Stop linking a copy of _json_c_strerror() (strerror_override.c) into the tests. 2 years ago
  Federico Francescon 1a2fdc49e7 Fixed `test_int_get` expected output 2 years ago
  Federico Francescon b1fb1508ee Added basic tests for `json_object_get_int`, `json_object_get_int64`, `json_object_get_uint64` 2 years ago
  Eric Haszlakiewicz bc35549f90 Update expected output for test_parse, missed in the previous commit. 2 years ago
  Eric Haszlakiewicz d6f46ae104 Explicitly check for integer overflow/underflow when parsing integers with JSON_TOKENER_STRICT. 2 years ago
  Khem Raj 6eca65617a Fix build with clang-15+ 3 years ago
  Dimitri Papadopoulos 9462c0a7b5
Fix typos found by codespell 3 years ago
  Eric Haszlakiewicz bdd5e03d6e Apply some of the fixes from PR #740, although by using size_t instead of castings. 3 years ago
  Eric Haszlakiewicz 253a5fa99d Issue #705: disable locale handling when building for a uClibc system because its duplocale() function (intentionally) crashes. 3 years ago
  Eric Haszlakiewicz 9749b0cb66 When serializing with JSON_C_TO_STRING_PRETTY set, keep the opening and closing curly or square braces on same line for empty objects or arrays. Issue #778. 3 years ago
  Eric Haszlakiewicz 5282e73600 Entirely drop mode bits from open(O_RDONLY) to avoid warnings on certain platforms. Fixes issue #779. 3 years ago
  Eric Haszlakiewicz 22773b1e51 Fix the expected output for test_set_serializer. 3 years ago
  Eric Haszlakiewicz 16208fc01a Add test to check for the memory leak mentioned in issue #781 3 years ago
  Eric Haszlakiewicz 49c3721a5a Unset NDEBUG so assert() is enabled in all tests. One more fix there when building with -DCMAKE_BUILD_TYPE=release. 3 years ago
  Eric Haszlakiewicz 6ba1adf8ef Include the tests and apps directories at the _end_, since order in the 3 years ago
  Eric Haszlakiewicz 46b58ad9e7 Fix issue #764: adjust test_util_file to match new output (changed in 6e53347) 3 years ago
  Tobias Stoeckmann 543a8eb5f9 Fix typos 3 years ago
  Leon Gross 8be2ffdcd7 fix cmake version for tests 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