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:
parent
013a8da4ac
commit
f1c2d98b01
1 changed files with 10 additions and 0 deletions
10
test/pjstadig/humane_test_output/records_test.clj
Normal file
10
test/pjstadig/humane_test_output/records_test.clj
Normal 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}))))
|
Loading…
Reference in a new issue