File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 32
32
(defn- print-char [c]
33
33
(-write *out* (condp = c
34
34
\backspace " \\ backspace"
35
+ \space " \\ space"
35
36
\tab " \\ tab"
36
37
\newline " \\ newline"
37
38
\formfeed " \\ formfeed"
Original file line number Diff line number Diff line change 11
11
(:require-macros
12
12
[cljs.pprint-test :refer [simple-tests code-block]])
13
13
(:require
14
- [cljs.test :as t :refer-macros [deftest is]]
14
+ [cljs.test :as t :refer-macros [deftest is are ]]
15
15
[cljs.pprint :refer [pprint cl-format get-pretty-writer prn print-table
16
16
*print-pprint-dispatch* simple-dispatch
17
17
*print-right-margin* *print-miser-width*
@@ -1087,3 +1087,14 @@ Usage: *hello*
1087
1087
"
1088
1088
)
1089
1089
1090
+ (deftest test-cljs-2881
1091
+ (are [expected ch]
1092
+ (= expected (with-out-str (cl-format true " ~@c" ch)))
1093
+ " \\ newline" \newline
1094
+ " \\ space" \space
1095
+ " \\ tab" \tab
1096
+ " \\ backspace" \backspace
1097
+ " \\ return" \return
1098
+ " \\ formfeed" \formfeed
1099
+ " \\\" " \"
1100
+ " \\\\ " \\))
You can’t perform that action at this time.
0 commit comments