summaryrefslogtreecommitdiff
path: root/tests/test_deep_copy.expected
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos found by codespellDimitri Papadopoulos2022-08-131-3/+3
| | | | Do not fix typos from past commits found in release notes.
* add test casesdota172020-03-311-0/+1
|
* add testcases of object and tokenchenguoping2019-12-271-0/+3
|
* In json_object_deep_copy(), copy over _userdata, at least for ↵Eric Haszlakiewicz2017-11-291-3/+11
| | | | json_type_string's with the default serializer set, and provide a way for people using custom serializers to provide a custom shallow_copy method.
* tests: add test_deep_copy testAlexandru Ardelean2017-11-271-0/+140
Seems to perform better than outputting to string and re-parsing it. BENCHMARK - 1000000 iterations of 'dst2 = json_tokener_parse(json_object_get_string(src2))' took 20 seconds BENCHMARK - 1000000 iterations of 'dst2 = json_tokener_parse(json_object_get_string(src2))' took 7 seconds It should make a difference on embedded systems. The test was performed on a i5 desktop CPU [~3.5 years of age]. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>