mirror of
https://github.com/json-c/json-c.git
synced 2026-04-01 03:19:06 +08:00
gitignore test; add double value set checks in test
This commit is contained in:
@@ -23,8 +23,14 @@ int main(int argc, char **argv)
|
||||
assert (json_object_get_boolean(tmp)==TRUE);
|
||||
json_object_put(tmp);
|
||||
printf("BOOL PASSED\n");
|
||||
|
||||
|
||||
tmp=json_object_new_double(12.34);
|
||||
assert (json_object_get_double(tmp)==12.34);
|
||||
json_object_set_double(tmp,34.56);
|
||||
assert (json_object_get_double(tmp)==34.56);
|
||||
json_object_set_double(tmp,6435.34);
|
||||
assert (json_object_get_double(tmp)==6435.34);
|
||||
json_object_put(tmp);
|
||||
printf("DOUBLE PASSED\n");
|
||||
printf("PASSED\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
INT PASSED
|
||||
INT64 PASSED
|
||||
BOOL PASSED
|
||||
DOUBLE PASSED
|
||||
PASSED
|
||||
|
||||
Reference in New Issue
Block a user