mirror of
https://github.com/janet-lang/janet
synced 2025-11-05 18:13:37 +00:00
Fix incorrect usage of the test macro
I need unit tests....
This commit is contained in:
@@ -1239,7 +1239,7 @@
|
|||||||
# NOTE: index-of throws excpetion if `collection` is not iterable
|
# NOTE: index-of throws excpetion if `collection` is not iterable
|
||||||
#
|
#
|
||||||
# We want to guard against that
|
# 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`.
|
(defdyn *defdyn-prefix* ``Optional namespace prefix to add to keywords declared with `defdyn`.
|
||||||
|
|||||||
Reference in New Issue
Block a user