256 Commits (7974657c5699416b1195f77f9571d9f46bf608b8)

Author SHA1 Message Date
  Eric Haszlakiewicz b8738dd623 Rewrite test_basic_parse() to factor out a single_basic_parse() to avoid lots of duplicate boiler plate code. 7 years ago
  Eric Haszlakiewicz e424af32b7 Fix definition of NELEM in the tests. 8 years ago
  Juraj Vijtiuk 1110e84cce Add json_object_add_int functions 8 years ago
  Eric Haszlakiewicz 81f6edbfd5 PR#331: for Visual Studio, use a snprintf/vsnprintf wrapper that ensures the string is terminated. 8 years ago
  Eric Haszlakiewicz fcad0ec015 PR #336: since we can't use function overriding (due to problems with it on 8 years ago
  Eric Haszlakiewicz 40317f079e Allow USE_VALGRIND to be set to anything starting with 0, N or n to disable valgrind during tests. 8 years ago
  Alexandru Ardelean fb72160caf build: make `strerror()` override-able 8 years ago
  Alexandru Ardelean 7b9432d564 tests: fix leak in `test_util_file` ; found by cppcheck 8 years ago
  Alexandru Ardelean 9d47ae824c tests: compress test_utile_file with test_basic 8 years ago
  Eric Haszlakiewicz 33db761551 Updated expected test1 output which should have been included in commit fd9b3b2. 8 years ago
  Eric Haszlakiewicz fd9b3b2260 Issue #332: fix a long-standing bug in array_list_put_idx() where it would attempt to free previously free'd entries due to not checking the current array length. 8 years ago
  Alexandru Ardelean 73636c2ed0 tests: symlink basic tests to a single file that has the common code 8 years ago
  Eric Haszlakiewicz e8e574fbe4 Issue #161: add a json_object_to_fd() function. 8 years ago
  Eric Haszlakiewicz 23e064ad29 Fix test_double_serializer expected output. 8 years ago
  Eric Haszlakiewicz 1a94c70336 Add a json_c_set_serialization_double_format() function to set the *library-wide* format for how doubles are written to a serialized JSON output. 8 years ago
  Eric Haszlakiewicz 8c86207258 Add a few more cases to test_parse to provide some examples of how parsing works; should help address the questions raised in Issue #302. 8 years ago
  Eric Haszlakiewicz 3948fcad2d Issue #300: Cast size_t values to int instead of unsigned long long to work around broken behavior of MinGW. 8 years ago
  Eric Haszlakiewicz bad6c9a427 Issue #300: Some platforms, such as MinGW, don't have ETXTBSY and ENOTBLK, so skip those there. 8 years ago
  Eric Haszlakiewicz 9a64fd7d55 Issue #300: Use %p instead of %lx in test_util_file since some platforms' pointers are larger than "unsigned long". 8 years ago
  Eric Haszlakiewicz 3fab117e4e Merge pull request #299 from qlyoung/perf-improvements 8 years ago
  Quentin Young f6f852fd93 Restore sprintbuf(), add macro for string literals 8 years ago
  Eric Haszlakiewicz 75825a9f01 Use strdup instead of strndup in test1.c, there's no need for the latter because json_object_to_json_string_length() will always return a properly sized string. 8 years ago
  Quentin Young 9ff0f4987f Improve json_object -> string performance 8 years ago
  Eric Haszlakiewicz 0a010a59eb Change a memcpy that should be a memmove within json_pointer_get, and fix memory leaks in of one the json_pointer tests. 8 years ago
  Jan Gerhards 61db4cfac5 testbench: add test for floating point representation 8 years ago
  Jan Gerhards ca7a1973e2 bugfix: floating point representaion without fractional part 8 years ago
  Alexandru Ardelean c0da680f13 test_json_pointer: update test with a few printf variants 9 years ago
  Alexandru Ardelean ee7fc26de1 tests: add test_json_pointer test 9 years ago
  Alexandru Ardelean 2fbdee19da tests/strerror_override.c: fix compilation error 9 years ago
  Eric Haszlakiewicz 33339ae595 Use json_visit() to clear the serializer data set when parsing so the output from test_parse reflects the actual values parsed. 9 years ago
  Eric Haszlakiewicz ecdc14f535 Add a json_c_visit() function to provide a way to iterate over a tree of json-c objects. 9 years ago
  Eric Haszlakiewicz 7e12b9f47c Fix broken key-order test in test_compare. 9 years ago
  Eric Haszlakiewicz 818156f6f7 Merge pull request #277 from ALLTERCO/json_object_set_xxx 9 years ago
  Stoian Ivanov e518b22b72 string set and tests 9 years ago
  Stoian Ivanov 9a313f767f gitignore test; add double value set checks in test 9 years ago
  Stoian Ivanov 6a0667567d some simple tests 9 years ago
  Eric Haszlakiewicz 36a28fcb0c Issue #275: fix out of bounds read when handling unicode surrogate pairs. 9 years ago
  Eric Haszlakiewicz 0fcf1d1ae7 Fix memory leak and inconsistent output (due to varying fd numbers) in test_util_file. 9 years ago
  Eric Haszlakiewicz 5fccfed4f4 Issue #260: add a check to prevent trivial loops in the object tree, even though it is up to the callers to avoid doing so in more complex cases. 9 years ago
  Eric Haszlakiewicz 61cd433131 Merge branch 'tests' of https://github.com/RyDroid/json-c into RyDroid-tests 9 years ago
  Nicola Spanti (RyDroid) 8215c0ac0e Very minor changes to some tests 9 years ago
  Eric Haszlakiewicz f3db59d990 Merge branch 'issue-165' of https://github.com/jobol/json-c into jobol-issue-165 9 years ago
  Nicola Spanti (RyDroid) 36b4003118 Adding a test with cppcheck for Travis CI 9 years ago
  Eric Haszlakiewicz 9688f343a5 Issue #246: Include xlocale.h too, to get locale_t defined, since not all OSes include that in locale.h 9 years ago
  José Bollo 1fceb2207a test: add test of 'json_object_to_json_string_length' 9 years ago
  Eric Haszlakiewicz fa76e4a8c9 Issue #195: Actually call uselocale() in the new locale handling code in json_tokener. 9 years ago
  Eric Haszlakiewicz 4091b9c87e Issue #195: use uselocale() instead of setlocale() in json_tokener to behave better in threaded environments. 9 years ago
  Eric Haszlakiewicz 7d637362b7 Linux's %p format doesn't return "0x0" for NULL pointers, so switch to using %lx for consistency. 9 years ago
  Eric Haszlakiewicz deb9fa482d Issue #240: add arbitrary use of val's in foreach loops to squash warnings about unused variables. 9 years ago
  José Bollo 54ae254537 Fix a compiling error 9 years ago