step 4: Test that (= (list nil) (list)) returns false.
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 13 Jul 2019 11:08:05 +0000 (12:08 +0100)
committerBen 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

index c1721f4..1f2f69e 100644 (file)
 ;=>false
 (= (list) 0)
 ;=>false
+(= (list nil) (list))
+;=>false
 
 
 ;; Testing builtin and user defined functions