summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/010/json.tl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/010/json.tl b/tests/010/json.tl
index dfd45173..f613c93a 100644
--- a/tests/010/json.tl
+++ b/tests/010/json.tl
@@ -184,3 +184,8 @@
(command-put-jsons `cat > @name` '(#() 1.0 nil)) t
(file-get-string name) "[]\n1\nfalse\n"
(command-get-jsons `cat @name`) (#() 1.0 nil))))
+
+(mtest
+ (tojson 1) "1"
+ (tojson 123123123123123123123123123123) "123123123123123123123123123123"
+ (tojson '(1 2 3 4 5)) "[1,2,3,4,5]")