From f778e8bbd17560a65b167f5691998d522cc5a9a1 Mon Sep 17 00:00:00 2001 From: Techcable Date: Fri, 26 Aug 2022 15:35:26 -0700 Subject: [PATCH] Fix incorrect usage of the test macro I need unit tests.... --- src/boot/boot.janet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index fd338855..17a6601a 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -1239,7 +1239,7 @@ # NOTE: index-of throws excpetion if `collection` is not iterable # # We want to guard against that - (try (not (nil? (index-of val collection))) false)) + (try (not (nil? (index-of val collection))) [[_] false])) (defdyn *defdyn-prefix* ``Optional namespace prefix to add to keywords declared with `defdyn`.