aboutsummaryrefslogtreecommitdiff
path: root/test_json.c
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 16:53:37 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 16:53:37 +0200
commit85b0db24804e6a8a66f557ac8917596db5fc5d9f (patch)
tree22cdfbf325fe7ecadc744a668f28c46b03e0f008 /test_json.c
parent2d225abf3b482fa2bf8cf9a56b8caefcc5724447 (diff)
refactor: Better types
Diffstat (limited to 'test_json.c')
-rw-r--r--test_json.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test_json.c b/test_json.c
index d2a4595..ee7f0f3 100644
--- a/test_json.c
+++ b/test_json.c
@@ -2,7 +2,7 @@
#include "testing.h"
#include <stdio.h>
-char test_json_integer() {
+int test_json_integer() {
Arena perm = Arena_new(128e3);
JSON json_int = JSON_parse(&perm, "123");
@@ -12,7 +12,7 @@ char test_json_integer() {
return 0;
}
-char test_json_int_array() {
+int test_json_int_array() {
Arena perm = Arena_new(128e3);
JSON json_int_array = JSON_parse(&perm, "[1,2,3]");
@@ -35,7 +35,7 @@ char test_json_int_array() {
return 0;
}
-char test_json_nested_array() {
+int test_json_nested_array() {
Arena perm = Arena_new(128e3);
JSON doc = JSON_parse(&perm, "[[1,\"abc\"]]");
@@ -53,7 +53,7 @@ char test_json_nested_array() {
return 0;
}
-char test_json_string() {
+int test_json_string() {
Arena perm = Arena_new(128e3);
JSON js = JSON_parse(&perm, "\"abc\"");
@@ -65,7 +65,7 @@ char test_json_string() {
return 0;
}
-char test_json_empty_object() {
+int test_json_empty_object() {
Arena perm = Arena_new(128e3);
JSON doc = JSON_parse(&perm, "{}");
@@ -76,7 +76,7 @@ char test_json_empty_object() {
return 0;
}
-char test_json_object() {
+int test_json_object() {
Arena perm = Arena_new(128e3);
JSON doc = JSON_parse(&perm, "{\"key\": \"value\"}");