File tree 2 files changed +3
-3
lines changed
src/cider/nrepl/middleware
test/clj/cider/nrepl/middleware
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 78
78
(try
79
79
(walk/postwalk
80
80
(fn [x]
81
- (if (map? x)
81
+ (if (and ( map? x) ( not ( record? x))) ; ; Prevent records turning into maps
82
82
(with-meta (into (sorted-map ) x) (meta x))
83
83
x))
84
84
m)
Original file line number Diff line number Diff line change 199
199
200
200
(deftest print-object-test
201
201
(testing " uses println for matcher-combinators results, otherwise invokes pprint"
202
- (is (= " {no quotes} \n "
202
+ (is (= " (mismatch (expected [33m1[0m) (actual [31m2[0m)) \n "
203
203
(#'test/print-object (matcher-combinators.clj-test/tagged-for-pretty-printing
204
204
'(not (match? 1 2 ))
205
- {:matcher-combinators.result/value { " no " " quotes " } })))
205
+ {:matcher-combinators.result/value ( matcher-combinators.model/->Mismatch " 1 " " 2 " ) })))
206
206
" println is chosen, as indicated by strings printed without quotes" )
207
207
(is (= " {:a\n (\" a-sufficiently-long-string\"\n \" a-sufficiently-long-string\"\n \" a-sufficiently-long-string\" )}\n "
208
208
(#'test/print-object {:a (repeat 3 " a-sufficiently-long-string" )}))
You can’t perform that action at this time.
0 commit comments