aboutsummaryrefslogtreecommitdiff
path: root/tests/test_json.c
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-08-23 19:43:33 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-08-27 11:45:28 +0200
commit413aac1035c855f3e735bf8539c0864182f9c6fb (patch)
tree3d8ef24389ee9e5662cc98900d4909ace4d97edc /tests/test_json.c
parenta44ce5c6f74fb777408b455ae21ca545447c0ade (diff)
code cleanup & keep using simd in string
Diffstat (limited to 'tests/test_json.c')
-rw-r--r--tests/test_json.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_json.c b/tests/test_json.c
index 1aec8c5..b2f8ece 100644
--- a/tests/test_json.c
+++ b/tests/test_json.c
@@ -138,6 +138,16 @@ i32 test_json_null() {
return 0;
}
+i32 test_json_long_spaces() {
+ Arena perm = Arena_new(128e3);
+ JSON doc = JSON_parse_raw(
+ &perm, "{\t \t \t \t \t }");
+
+ t_assert(doc.as.object.len == 0);
+
+ return 0;
+}
+
i32 test_json_multiline() {
Arena perm = Arena_new(128e3);