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:
parent
7203c046f9
commit
f778e8bbd1
@ -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`.
|
||||
|
Loading…
Reference in New Issue
Block a user