lib/lisp/tests/detect-examples.nydp in nydp-0.4.3 vs lib/lisp/tests/detect-examples.nydp in nydp-0.4.5

- old
+ new

@@ -24,9 +24,21 @@ ("returns nil if it's an atom and doesn't match" (detect (fn (x) (eq? (len x) 20)) "zz") nil) + ("empty list" + (detect present? nil) + nil) + + ("present? for list of empty things" + (detect present? (list "" nil {} ())) + nil) + + ("present? for mostly empty things" + (detect present? (list "" nil 42 {} ())) + 42) + ("nil for nil" (detect nil nil) nil) ("true for nil in list containing nil"