Commit Graph

  • 3c3b5920f7 add uint64 data to json-c dota17 2020-02-20 15:17:05 +08:00
  • c684b1d40b add coveralls auto tool to json-c dota17 2020-02-17 18:15:15 +08:00
  • 518f337ce8 Issue #539: use a internal-only serializer function in json_object_new_double_s() to avoid potential conflicts with user code that uses the json_object_userdata_to_json_string serializer. Also, document the serializer-resetting behavior of json_object_set_double(). Eric Haszlakiewicz 2020-02-14 03:48:02 +00:00
  • 4bf7ffa984 Issue #539: be sure to clean up at the end of test_set_value. Eric Haszlakiewicz 2020-02-14 03:25:46 +00:00
  • ae13ca524a Issue #539: reset the serializer when json_object_set_double() is called and the current serializer is the one that json_object_new_double_s() used. Eric Haszlakiewicz 2020-02-13 03:11:10 +00:00
  • 0ffdbb2395 Merge pull request #531 from dota17/utf8test Eric Haszlakiewicz 2020-02-05 21:56:06 -05:00
  • 1934eddf29 Merge pull request #536 from dota17/new_null Eric Haszlakiewicz 2020-01-21 23:23:53 -05:00
  • 7ad72b81c5 update comment dota17 2020-01-22 09:56:52 +08:00
  • 010f33d460 add json_object_new_null dota17 2020-01-20 15:00:11 +08:00
  • 787a8b3f1c update code dota17 2020-01-17 15:33:44 +08:00
  • 360d28b961 Merge pull request #533 from sunpoet/master Eric Haszlakiewicz 2020-01-12 22:42:02 -05:00
  • bb5971ba2a Fix make check Po-Chuan Hsieh 2020-01-11 07:20:44 +00:00
  • eca74dcccf test utf8 dota17 2020-01-08 19:42:05 +08:00
  • e651e96a5b Merge pull request #526 from dota17/addTestCase_printbuf Eric Haszlakiewicz 2020-01-03 08:32:53 -05:00
  • a255510cca Merge pull request #525 from dota17/addPointerTestcase Eric Haszlakiewicz 2020-01-03 08:31:41 -05:00
  • 8c0cb0bd28 Increased the test coverage of printbuf.c 82% to 92%. chenguoping 2020-01-03 14:34:35 +08:00
  • 0421772bbc Merge pull request #523 from dota17/updatetestcase Eric Haszlakiewicz 2020-01-02 22:22:57 -05:00
  • 4bfed6eb2f Merge pull request #522 from dota17/addVisitTestcase Eric Haszlakiewicz 2020-01-02 22:22:09 -05:00
  • 5fe4448541 update tsetcase for tokener_c dota17 2020-01-02 16:18:59 +08:00
  • a5089f5a79 update json_visit testcase dota17 2019-12-31 11:27:09 +08:00
  • 48ae9e8874 update pointer test case dota17 2019-12-30 09:45:28 +08:00
  • ee34939e74 Merge pull request #519 from dota17/addTestCase_obj_token Eric Haszlakiewicz 2019-12-29 16:02:04 -05:00
  • 424b315ce0 pointer types discards qualifiers chenguoping 2019-12-27 15:39:31 +08:00
  • 1446572997 add testcases of object and token chenguoping 2019-12-27 15:07:00 +08:00
  • d6b968dff7 Merge pull request #512 from JaapKeuter/cmake_test Eric Haszlakiewicz 2019-12-12 22:30:15 -05:00
  • 78d8e5c3d5 Properly append to CMAKE_C_FLAGS string Jaap Keuter 2019-12-12 21:28:03 +01:00
  • 6c55f65d07 Set cmake policy CMP0075, to have check_include_file use the value of CMAKE_REQUIRED_LIBRARIES (currently, adds -lm). See issue #510. Eric Haszlakiewicz 2019-12-06 00:15:14 -05:00
  • 0819a55ffb Undefine NDEBUG for tests - cmake version. See issue #501. Eric Haszlakiewicz 2019-12-05 23:18:59 -05:00
  • 37b4da6b92 Merge pull request #501 from andy5995/iss_406-2 Eric Haszlakiewicz 2019-12-05 23:18:46 -05:00
  • 581b94b3bd Add a shim script to ease shift from autoconf to cmake. Eric Haszlakiewicz 2019-12-01 23:42:40 -05:00
  • 11a638048d Add a few missing features to the cmake setup that are present in configure.ac: Include all compiler warnings, and provide DISABLE_WERROR to make them not be errors. Define _REENTRANT, if setting it works. Set -Bsymbolic-functions, and provide DISABLE_BSYMBOLIC to turn that off. Implement the check for HAS_GNU_WARNING_LONG Eric Haszlakiewicz 2019-11-26 23:01:27 -05:00
  • a92e6d2c28 Set the soversion in the cmake built library, and arrange for the file name to be generated appropriately too. Eric Haszlakiewicz 2019-11-25 23:26:48 -05:00
  • 41f434e89f Fix test_util_file for VS2013 too, but skip all the tests for anything older than that because the limitations are too inconvenient. Eric Haszlakiewicz 2019-11-23 23:55:04 -05:00
  • b99be9cf4e Fix up the test_util_file test for builds on Windows VS2015. Eric Haszlakiewicz 2019-11-23 23:14:24 -05:00
  • 7f30afc6e5 Fix some Windows compile issues, add JSON_EXPORT's, fix bogus character escapes, define __func__ and omit unistd.h if needed. Eric Haszlakiewicz 2019-11-23 20:31:14 -05:00
  • f19abcf981 Get the cmake build a bit closer to the autoconf one: include json_visit.h, and fix the version stamped in json-c.pc. Eric Haszlakiewicz 2019-11-23 15:34:23 -05:00
  • bdaff94e9a Build and run the tests as part of the cmake build. Eric Haszlakiewicz 2019-11-23 15:15:48 -05:00
  • 25aedddcdf Fix memory leaks in test_double_serializer, and make sure all tests return 0 at the end of main(). Eric Haszlakiewicz 2019-11-23 12:05:28 -05:00
  • 3d3b014971 Add a quick way (JSONC_TEST_TRACE=1) to turn on shell tracing in tests. Eric Haszlakiewicz 2019-11-23 12:03:27 -05:00
  • b1ad748842 Extend test_double_serializer to check NaN and Infinity handling. Eric Haszlakiewicz 2019-11-22 22:56:33 -05:00
  • af8dd4a307 Define vars earlier to fix old Windows builds. Eric Haszlakiewicz 2019-11-10 20:35:30 -05:00
  • baed9983b3 Add a json_object_from_fd_ex() function, to allow the max nesting depth to be specified. Eric Haszlakiewicz 2019-11-10 00:12:27 -05:00
  • ac26ea9c5b Add a test for serializing the double value -1.0. Eric Haszlakiewicz 2019-11-10 00:10:28 -05:00
  • ddd049045d Merge pull request #505 from grdowns/vcpkg-instructions Eric Haszlakiewicz 2019-09-26 22:23:52 -04:00
  • 7ef51239a9 Update dependencies grdowns 2019-09-26 17:11:49 -07:00
  • 760c1e284c Add vcpkg installation instructions grdowns 2019-09-26 17:09:39 -07:00
  • eae040a84a Issue #488: use JSON_EXPORT on functions so they are properly exported on Windows. Eric Haszlakiewicz 2019-09-08 22:42:36 -04:00
  • 374ffe87c6 Issue #463: fix newlocale() call to use LC_NUMERIC_MASK instead of LC_NUMERIC, and remove incorrect comment. The second call to newlocale() with LC_TIME accidentally made things work because LC_TIME == LC_NUMERIC_MASK on some platforms. Eric Haszlakiewicz 2019-09-08 22:27:30 -04:00
  • 05b41b159e Add a json_tokener_get_parse_end() function to replace direct access of tok->char_offset. Eric Haszlakiewicz 2019-09-08 21:35:37 -04:00
  • 087534c030 Minor cleanup of includes in a couple of tests. Eric Haszlakiewicz 2019-09-08 21:34:13 -04:00
  • d0b87ee87b Add an explicit cast to double to squash a -Wimplicit-int-float-conversion warning. Though we will no longer be comparing exactly against INT64_MAX, this is ok because any value of that magnitude stored in a double will *also* have been rounded up, so the comparison will work appropriately. Eric Haszlakiewicz 2019-08-12 00:30:45 +00:00
  • 8799623806 undefine NDEBUG for tests andy5995 2019-07-29 14:51:21 -05:00
  • a91aa5e35d Merge pull request #499 from andy5995/travis_valgrind Eric Haszlakiewicz 2019-07-27 09:29:57 -04:00
  • 509600a7f7 add xenial default clang with CHECK enabled andy5995 2019-07-26 23:51:18 -05:00
  • 4f69529a04 add missing dist andy5995 2019-07-26 23:36:01 -05:00
  • dd08b70e46 manually use apt-get to install packages on bionic andy5995 2019-07-26 23:15:06 -05:00
  • dd0eef6aab add tests on bionic beaver andy5995 2019-07-26 22:42:53 -05:00
  • 163db3f6d0 revert toolchain back to "test" andy5995 2019-07-25 23:16:09 -05:00
  • 1da4b23235 change key andy5995 2019-07-25 23:10:14 -05:00
  • a49f1dee8a use "non-test" ppa andy5995 2019-07-25 23:00:50 -05:00
  • 897b49f475 remove useless condition that shows logs andy5995 2019-07-25 14:11:31 -05:00
  • b140c473d1 install doxygen so 'make distcheck' can succeed andy5995 2019-07-24 14:20:07 -05:00
  • 6288be340c test for more compilers andy5995 2019-07-24 14:13:23 -05:00
  • 57e79e1d0b show the logs if tests fail andy5995 2019-07-24 13:30:10 -05:00
  • 50e7fff0f3 .travis.yml:install valgrind andy5995 2019-07-24 01:08:30 -05:00
  • c8e1b59ae5 Merge pull request #495 from andy5995/README_typos Eric Haszlakiewicz 2019-07-26 23:08:11 -04:00
  • 1c7e891e44 "make its use in" [skip ci] andy5995 2019-07-26 12:59:24 -05:00
  • 4a94ddbd8b Merge pull request #500 from andy5995/add_missing_test_deps Eric Haszlakiewicz 2019-07-26 09:48:34 -04:00
  • e2f46b9f79 partial revert (make use) [skip ci] andy5995 2019-07-25 22:55:07 -05:00
  • 68abf12afa Issue #498: Fix a memory leak bug introduced in test_double_serializer in 485f2a02 by adding a json_object_put call. Eric Haszlakiewicz 2019-07-26 03:35:38 +00:00
  • 48984dbd42 Merge pull request #496 from andy5995/pointer_doc Eric Haszlakiewicz 2019-07-25 22:58:22 -04:00
  • 8ab8df1170 test/Makefile.am:add missing deps for test1 and test2 andy5995 2019-07-25 14:59:56 -05:00
  • a9c34d5531 json_pointer.h:suggest minor grammar improvement for pointer doc andy5995 2019-07-23 23:53:06 -05:00
  • 3969487376 README.md:fix 2 typos andy5995 2019-07-23 23:43:59 -05:00
  • 07ea04e651 Merge pull request #491 from ploxiln/disable_werror Eric Haszlakiewicz 2019-06-09 14:05:46 -04:00
  • 634900d270 tests: appease -Wwrite-strings Pierce Lopez 2019-06-09 12:10:14 -04:00
  • 44605744dc build: fix compiler option -Wwrite-strings Pierce Lopez 2019-06-09 10:55:50 -04:00
  • 21c886534f build: add --disable-werror option to configure Pierce Lopez 2019-06-09 10:52:08 -04:00
  • 2b1903cc69 Merge pull request #485 from myd7349/fix-cmake-module Eric Haszlakiewicz 2019-05-30 22:38:29 -04:00
  • 485f2a02c7 Issue #486: append a missing ".0" to negative double values too. Eric Haszlakiewicz 2019-05-28 02:44:22 +00:00
  • c2036ab9fc Install CMake module files myd7349 2019-05-18 19:44:29 +08:00
  • 3e81b4abe3 Merge pull request #474 from Jehan/fix-pc-file-cmake Eric Haszlakiewicz 2019-01-26 10:55:50 -05:00
  • c46a0636c6 Installation directories empty with CMake in pkg-config. Jehan 2019-01-26 12:30:40 +01:00
  • f1713b3f62 Merge pull request #473 from besser82/fixup/docs_utf8 Eric Haszlakiewicz 2019-01-23 22:47:27 -05:00
  • 259d5078c4 Clean trailing white-spaces in ChangeLog. Björn Esser 2019-01-22 17:07:00 +01:00
  • 6b0745ea1f Convert ChangeLog to valid UTF-8 encoding. Björn Esser 2019-01-22 16:59:50 +01:00
  • 38a112380b json_object: cleanup of *set_string* functions Ramiro Polla 2018-12-08 23:30:19 +01:00
  • 906188e1cf json_object: speed up creation of objects Ramiro Polla 2018-12-08 22:14:41 +01:00
  • c9a0ac5886 json_tokener: optimize parsing of integer values Ramiro Polla 2018-12-08 19:28:46 +01:00
  • d98fc501fb json_tokener: optimize check for number characters Ramiro Polla 2018-12-08 19:17:25 +01:00
  • 45c601bfa4 json_tokener: optimize check for hex characters Ramiro Polla 2018-12-08 19:13:25 +01:00
  • 158c248d5c json_tokener: optimize check for whitespace characters Ramiro Polla 2018-12-08 19:07:49 +01:00
  • ab3e40b37c json_object_deep_copy: fix deep copy of strings containing '\0' Ramiro Polla 2018-12-02 00:23:30 +01:00
  • 1f46d2f40f json_object_private: remove _delete field Ramiro Polla 2018-12-01 18:57:22 +01:00
  • 39c9fa0a2b Merge pull request #468 from rkalidas/compiler-fixes Eric Haszlakiewicz 2018-12-19 11:09:01 -05:00
  • 3003161eff Fix compiler warnings Rubasri Kalidas 2018-12-18 11:30:57 -06:00
  • 6460446aa6 Switch to building a dynamic lib by default. Tweak language in the README.md slightly. Inspired by PR#452. Eric Haszlakiewicz 2018-12-11 20:59:08 -05:00
  • 0daf8dc826 install json_object_iterator.h header file Eric Haszlakiewicz 2018-12-11 20:35:56 -05:00
  • ee4691c9fb Merge pull request #453 from darjankrijan/master Eric Haszlakiewicz 2018-12-11 20:17:43 -05:00
  • 9c4b07faec Removed newly created test case and incorporated it into test1.test and test2.test Darjan Krijan 2018-12-07 17:39:59 +01:00