From 13fdee74dc28f0b068503843c6e14071a7c339f2 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 22 Jul 2025 08:59:24 +0200 Subject: feat: More integer types --- test_json.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test_json.c') 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}"); -- cgit v1.3