diff options
Diffstat (limited to 'tests/test_json.c')
| -rw-r--r-- | tests/test_json.c | 10 |
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); |
