add testcases of object and token
This commit is contained in:
1 parent
d6b968dff7
commit
1446572997
6 files changed
+78
-1
No files matched your search
@@ -31,6 +31,12 @@ int main()
|
||||
json_object_set_serializer(obj, NULL, NULL, NULL);
|
||||
printf("obj.to_string(reset)=%s\n", json_object_to_json_string(obj));
|
||||
|
||||
json_object_put(obj);
|
||||
printf("Test no zero reset serializer:\n");
|
||||
obj = json_object_new_double(3.1415000);
|
||||
json_object_set_serializer(obj, json_object_double_to_json_string, "%.17g", NULL);
|
||||
printf("obj.to_string(reset)=%s\n", json_object_to_json_string_ext(obj, 4));
|
||||
|
||||
json_object_put(obj);
|
||||
obj = json_object_new_double(0.52381);
|
||||
|
||||
|
||||
Reference in new issue
Block a user