I thought this test would assure me that my test data contains at least one
question:
(deftest is-there-at-least-one-question
(testing "We want to see if there is at least one question in memory.]"
(let [first-question (get-in @um/interactions [:questions])]
(println (apply str first-question))
(is (not (nil? first-question))))))
but I run "lein test" and I get:
FAIL in (is-there-at-least-one-question) (core_test.clj:16)
We want to see if there is at least one question in memory.]
expected: (not (nil? first-question))
actual: (not (not true))
I know there is a map full of questions at interactions[:questions], so why
does the test fail, and why is first-question rendered as true, when I know
it is a map?
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en