From c5ac672b4e0e83fa92d629216c3e07abc2756489 Mon Sep 17 00:00:00 2001 From: Andrey Listopadov Date: Tue, 16 Feb 2021 20:57:29 +0300 Subject: fix(core): check if nil is used as table key --- tests/core.fnl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/core.fnl') diff --git a/tests/core.fnl b/tests/core.fnl index fe14670..063df03 100644 --- a/tests/core.fnl +++ b/tests/core.fnl @@ -721,7 +721,8 @@ (assert-eq (core.hash-map) {}) (assert-eq (core.hash-map :a 1) {:a 1}) (assert-eq (core.hash-map :a 1 :b 2 :c 3) {:a 1 :b 2 :c 3}) - (assert-eq (getmetatable (core.hash-map)) {:cljlib/type :table}))) + (assert-eq (getmetatable (core.hash-map)) {:cljlib/type :table}) + (assert-not (pcall core.hash-map nil 1)))) (deftest sets (testing "hash-set" -- cgit v1.2.3