Skip to content

Commit b021674

Browse files
lreadborkdude
andauthored
Additional test for embedded quote string coercion (#218)
Thanks to @borkdude for noticing we weren't really covering here. Amendment to #176 Co-authored-by: Michiel Borkent <[email protected]>
1 parent 9ae5a75 commit b021674

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/rewrite_clj/node/coercer_test.cljc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@
6666
(testing "multi-line string newline variants are normalized"
6767
(let [s "hey\nyou\rover\r\nthere"
6868
n (node/coerce s)]
69-
(is (= "hey\nyou\nover\nthere" (node/sexpr n))))))
69+
(is (= "hey\nyou\nover\nthere" (node/sexpr n)))))
70+
(testing "coerce string roundtrip"
71+
(is (= "\"hey \\\" man\"" (-> "hey \" man" node/coerce node/string)))))
7072

7173
(deftest
7274
t-quoted-list-reader-location-metadata-elided

0 commit comments

Comments
 (0)