aboutsummaryrefslogtreecommitdiff
path: root/test/suites/api/test_equal.c
AgeCommit message (Collapse)AuthorFilesLines
2019-10-21Tweak clang-format configuration a bitPetri Lehtinen1-16/+15
Set ColumnLimit to 90, remove AllowShortCaseLabelsOnASingleLine.
2019-10-21Run clang-format on *.c, *.hPetri Lehtinen1-58/+55
2019-10-15fix typo & add negative test case for test_equal_complexallen1-4/+14
2018-02-15Improve test coverage.Corey Farrell1-0/+7
* Test equality of different length strings. * Add tab to json_pack whitespace test. * Test json_sprintf with empty result and invalid UTF. * Test json_get_alloc_funcs with NULL arguments. * Test invalid arguments. * Add test_chaos to test allocation failure code paths. * Remove redundant json_is_string checks from json_string_equal and json_string_copy. Both functions are static and can only be called with a json string. Fixes to issues found by test_chaos: * Fix crash on OOM in pack_unpack.c:read_string(). * Unconditionally free string in string_create upon allocation failure. Update load.c:parse_value() to reflect this. This resolves a leak on allocation failure for pack_unpack.c:pack_string() and value.c:json_sprintf(). Although not visible from CodeCoverage these changes significantly increase branch coverage. Especially in src/value.c where we previously covered 67.4% of branches and now cover 96.3% of branches.
2016-09-18Update copyrights for 2016Petri Lehtinen1-1/+1
2014-01-28Update copyrights for 2014Petri Lehtinen1-1/+1
2013-07-23Update copyrights for 2013Petri Lehtinen1-1/+1
2012-03-20Update copyright notices for 2012Petri Lehtinen1-1/+1
2011-10-02Make real number encoding and decoding work under all localesPetri Lehtinen1-2/+1
The decimal point '.' is changed to locale's decimal point before/after JSON conversion to make C standard library's locale-specific string conversion functions work correctly. All the tests now call setlocale(LC_ALL, "") on startup to use the locale set in the environment. Fixes GH-32.
2011-01-22Update copyright notices for 2011Petri Lehtinen1-1/+1
2010-08-14Add a flags parameter to all decoding functions for future needsPetri Lehtinen1-2/+2
As of now, the parameter is unused, but may be needed in the future. I'm adding it now so that in the future both API and ABI remain backwards compatible as long as possible. This is a backwards incompatible change.
2010-02-02Add year 2010 to copyright noticesPetri Lehtinen1-1/+1
2010-01-10Fix memory leaks in json_equal() testsPetri Lehtinen1-2/+5
2009-12-31Add equality test for JSON valuesPetri Lehtinen1-0/+187