From d3ed61b4501118f854e5c37e38633bd8e52c8486 Mon Sep 17 00:00:00 2001 From: Mawueli Kofi Adzoe Date: Tue, 29 Sep 2015 04:55:38 +0000 Subject: [PATCH] Add tests for nill and false. --- lt-cljs-tutorial.cljs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lt-cljs-tutorial.cljs b/lt-cljs-tutorial.cljs index e4b5bca..28f9884 100644 --- a/lt-cljs-tutorial.cljs +++ b/lt-cljs-tutorial.cljs @@ -549,6 +549,14 @@ a-list ;; The only false-y values in ClojureScript are `nil` and `false`. `undefined` ;; is not really a valid ClojureScript value and is generally coerced to `nil`. +(if nil + "Yuck" + "`nil` is one of the two false-y values in ClojureScript.") + +(if false + "Yuck." + "false is the other false-y value.") + ;; cond ;; ----------------------------------------------------------------------------