Skip to content

Commit 58faf8e

Browse files
jafingerhutstuarthalloway
authored andcommitted
CLJ-1076: Fix failing pprint tests on Windows
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
1 parent 6d1d9f6 commit 58faf8e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

test/clojure/test_clojure/pprint.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
(ns clojure.test-clojure.pprint
1212
(:refer-clojure :exclude [format])
13+
(:require [clojure.string :as str])
1314
(:use [clojure.test :only (deftest is are run-tests)]
1415
[clojure.test-helper :only [platform-newlines]]
1516
clojure.test-clojure.pprint.test-helper

test/clojure/test_clojure/pprint/test_pretty.clj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,11 @@ Usage: *hello*
130130
`(simple-tests ~test-name
131131
~@(apply concat
132132
(for [block blocks]
133-
`[(with-out-str
134-
(with-pprint-dispatch code-dispatch
135-
(pprint (read-string ~block))))
136-
(str ~block "\n")]))))
133+
`[(str/split-lines
134+
(with-out-str
135+
(with-pprint-dispatch code-dispatch
136+
(pprint (read-string ~block)))))
137+
(str/split-lines ~block)]))))
137138

138139
(code-block code-block-tests
139140
"(defn cl-format

0 commit comments

Comments
 (0)