1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-28 19:19:53 +00:00

Fix incorrect usage of the test macro

I need unit tests....
This commit is contained in:
Techcable 2022-08-26 15:35:26 -07:00
parent 7203c046f9
commit f778e8bbd1
No known key found for this signature in database
GPG Key ID: D7B98ADFF827CD17

View File

@ -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`.