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:
608a888
)
step 4: Test that (= (list nil) (list)) returns false.
author
Ben Harris
<bjh21@bjh21.me.uk>
Sat, 13 Jul 2019 11:08:05 +0000
(12:08 +0100)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Sat, 13 Jul 2019 11:08:05 +0000
(12:08 +0100)
Certain naïve implementations of '=' (like the one I just wrote) will
get this wrong.
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
c1721f4
..
1f2f69e
100644
(file)
--- a/
tests/step4_if_fn_do.mal
+++ b/
tests/step4_if_fn_do.mal
@@
-127,6
+127,8
@@
;=>false
(= (list) 0)
;=>false
+(= (list nil) (list))
+;=>false
;; Testing builtin and user defined functions