HCoop
/
jackhill
/
mal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8e2e95
)
tests: Add optional list and vector eqaulity tests
author
Dov Murik
<dov.murik@gmail.com>
Sun, 21 Jul 2019 10:10:17 +0000
(13:10 +0300)
committer
Dov Murik
<dov.murik@gmail.com>
Sun, 21 Jul 2019 10:14:07 +0000
(13:14 +0300)
tests/step4_if_fn_do.mal
patch
|
blob
|
blame
|
history
diff --git
a/tests/step4_if_fn_do.mal
b/tests/step4_if_fn_do.mal
index
0237d22
..
2d37b57
100644
(file)
--- a/
tests/step4_if_fn_do.mal
+++ b/
tests/step4_if_fn_do.mal
@@
-431,6
+431,8
@@
nil
;=>false
(= :abc ":abc")
;=>false
+(= (list :abc) (list :abc))
+;=>true
;; Testing vector truthiness
(if [] 7 8)
@@
-465,6
+467,8
@@
nil
;=>true
(= [7 8] [7 8])
;=>true
+(= [:abc] [:abc])
+;=>true
(= (list 1 2) [1 2])
;=>true
(= (list 1) [])