File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 332
332
; ; https://clojurians.slack.com/archives/C03S1KBA2/p1667334982789659
333
333
334
334
#?(:clj (defn roundtrippable? [x]
335
- (= x (-> x str read-string))))
335
+ (try
336
+ (= x (-> x str read-string))
337
+ (catch Exception _e false ))))
336
338
337
339
#?(:clj
338
340
(defmethod print-method clojure.lang.Keyword [o w]
Original file line number Diff line number Diff line change 218
218
(is (= " #viewer-eval (symbol \" with spaces\" )"
219
219
(pr-str (symbol " with spaces" ))))
220
220
(is (= " #viewer-eval (symbol \" with ns\" \" and spaces\" )"
221
- (pr-str (symbol " with ns" " and spaces" )))))
221
+ (pr-str (symbol " with ns" " and spaces" ))))
222
+ (is (= " #viewer-eval (symbol \" ~\" )"
223
+ (pr-str (symbol " ~" )))))
222
224
223
225
(testing " splicing reader conditional prints normally (issue #338)"
224
226
(is (= " ?@" (pr-str (symbol " ?@" ))))))
You can’t perform that action at this time.
0 commit comments