Add a failing records test.

Records are being printed as plain maps.  Issue #2.

When a record instance and a hash map have the same keys and values they are
considered not equal, but no diff is generated.  Issue #2.
This commit is contained in:
Paul Stadig 2015-02-21 07:36:10 -05:00
parent 013a8da4ac
commit f1c2d98b01

View file

@ -0,0 +1,10 @@
(ns pjstadig.humane-test-output.records-test
(:use [clojure.test]))
(defrecord ARecord [foo])
(deftest t-records
(testing "these should not print as plain maps"
(is (= (->ARecord :foo) (->ARecord :bar))))
(testing "there should be a diff here"
(is (= (->ARecord :foo) {:foo :foo}))))