From 413aac1035c855f3e735bf8539c0864182f9c6fb Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sat, 23 Aug 2025 19:43:33 +0200 Subject: code cleanup & keep using simd in string --- tests/test_json.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') 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); -- cgit v1.3