1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-18 01:07:40 +00:00

Fix not= and odd?

This commit is contained in:
Calvin Rose
2018-07-08 11:31:24 -04:00
parent f63d08efbd
commit 08f6c642d0
3 changed files with 10 additions and 6 deletions

View File

@@ -198,4 +198,8 @@
(def xs (apply1 tuple (for [x :range [0 10] :when (even? x)] (tuple (/ x 2) x))))
(assert (= xs '((0 0) (1 2) (2 4) (3 6) (4 8))) "for macro 1")
# Some testing for not=
(assert (not= 1 1 0) "not= 1")
(assert (not= 0 1 1) "not= 2")
(end-suite)