You are passing a single argument to =, essentially evaluating (= false).

> On Feb 25, 2015, at 2:33 PM, Marco Laspe <[email protected]> wrote:
> 
> Hello all,
> 
> I am quite new to ClojureScript. I wonder why the following code doesn't 
> throw an exception/error message.
> 
> 
> (ns akiee.fileoperations
>  (:require [cljs.test :refer-macros [is deftest]]))
> (enable-console-print!)
> 
> (defn task-file-path []
>  true)
> 
> (is (= (string? (task-file-path))))
> (assert (= (string? (task-file-path))))
> 
> 
> Both tests don't fail for task-file-path never returns a string.
> 
> Best,
> Marco
> 
> -- 
> Note that posts from new members are moderated - please be patient with your 
> first post.
> --- 
> You received this message because you are subscribed to the Google Groups 
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to