Adjust the "-Infinity" fix on the json-c-0.12 branch to match the master branch.

This commit is contained in:
Eric Haszlakiewicz
2017-11-26 23:31:00 -05:00
parent 2fc68d46ac
commit 0e1d83f980
3 changed files with 6 additions and 1 deletions

View File

@@ -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);