From a1ef85b5fab8dea3f9d2144102079de198d8ee3e Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 7 Dec 2022 22:27:35 +0100 Subject: add hash-table record printer --- tests/test.mew | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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 "#" (format "~a" (tbl))) + (test "#" (format "~a" (tbl 42 "foo")))) (test-group "set-at" (test #(0 42 0) (set-at #(0 0 0) 1 42)) -- cgit 1.4.1