mirror of
https://github.com/json-c/json-c.git
synced 2026-03-31 10:59:06 +08:00
Adjust the "-Infinity" fix on the json-c-0.12 branch to match the master branch.
This commit is contained in:
@@ -79,6 +79,10 @@ static void test_basic_parse()
|
||||
printf("new_obj.to_string()=%s\n", json_object_to_json_string(new_obj));
|
||||
json_object_put(new_obj);
|
||||
|
||||
new_obj = json_tokener_parse("{ \"min\": Infinity, \"max\": -Infinity}");
|
||||
printf("new_obj.to_string()=%s\n", json_object_to_json_string(new_obj));
|
||||
json_object_put(new_obj);
|
||||
|
||||
new_obj = json_tokener_parse("True");
|
||||
printf("new_obj.to_string()=%s\n", json_object_to_json_string(new_obj));
|
||||
json_object_put(new_obj);
|
||||
|
||||
Reference in New Issue
Block a user