summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test.mew5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test.mew b/tests/test.mew
index 589b63e..1fe7ec1 100644
--- a/tests/test.mew
+++ b/tests/test.mew
@@ -329,7 +329,10 @@
   (test-assert (hash-table? (tbl 1 2 3 4)))
   (test 0 (hash-table-size (tbl)))
   (test 42 (get (tbl 1 2 3 42) 3))
-  (test-error (tbl 1 2 3)))
+  (test-error (tbl 1 2 3))
+
+  (test "#<hash-table (0)>" (format "~a" (tbl)))
+  (test "#<hash-table (42 . \"foo\")>" (format "~a" (tbl 42 "foo"))))
 
 (test-group "set-at"
   (test #(0 42 0) (set-at #(0 0 0) 1 42))