diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-22 08:59:24 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-22 08:59:24 +0200 |
| commit | 13fdee74dc28f0b068503843c6e14071a7c339f2 (patch) | |
| tree | 323f35e351394c89faeaf61cccad716ba4e4fb1a /test_json.c | |
| parent | e02bfc1854effe0bb55ea6d4320e2b1902eaeae3 (diff) | |
feat: More integer types
Diffstat (limited to 'test_json.c')
| -rw-r--r-- | test_json.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test_json.c b/test_json.c index 65891fd..240a61e 100644 --- a/test_json.c +++ b/test_json.c @@ -1,7 +1,7 @@ #include "json.h" #include "testing.h" -int test_json_integer() { +i32 test_json_integer() { Arena perm = Arena_new(128e3); JSON json_int = JSON_parse(&perm, "123"); @@ -11,7 +11,7 @@ int test_json_integer() { return 0; } -int test_json_int_array() { +i32 test_json_int_array() { Arena perm = Arena_new(128e3); JSON json_int_array = JSON_parse(&perm, "[1,2,3]"); @@ -34,7 +34,7 @@ int test_json_int_array() { return 0; } -int test_json_empty_array() { +i32 test_json_empty_array() { Arena perm = Arena_new(128e3); JSON json_empty_array = JSON_parse(&perm, "[]"); @@ -45,7 +45,7 @@ int test_json_empty_array() { return 0; } -int test_json_nested_array() { +i32 test_json_nested_array() { Arena perm = Arena_new(128e3); JSON doc = JSON_parse(&perm, "[[1,\"abc\"]]"); @@ -63,7 +63,7 @@ int test_json_nested_array() { return 0; } -int test_json_string() { +i32 test_json_string() { Arena perm = Arena_new(128e3); JSON js = JSON_parse(&perm, "\"abc\""); @@ -75,7 +75,7 @@ int test_json_string() { return 0; } -int test_json_empty_object() { +i32 test_json_empty_object() { Arena perm = Arena_new(128e3); JSON doc = JSON_parse(&perm, "{}"); @@ -86,7 +86,7 @@ int test_json_empty_object() { return 0; } -int test_json_object() { +i32 test_json_object() { Arena perm = Arena_new(128e3); JSON doc = JSON_parse(&perm, "{\"key\": \"value\"}"); @@ -101,7 +101,7 @@ int test_json_object() { return 0; } -int test_json_boolean() { +i32 test_json_boolean() { Arena perm = Arena_new(128e3); JSON doc = JSON_parse(&perm, "{\"a\": true, \"b\": false}"); |
