Skip to content

Commit 8be7a7f

Browse files
committed
fixup! Add test cases for special case indentation
1 parent dcb3403 commit 8be7a7f

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

Diff for: clj/dev-resources/test-special-case-indent.in

+15-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
(->> "ola"
77
(x)))
88

9-
109
(->> "ola"
1110
(x))
1211

@@ -22,4 +21,19 @@
2221
(println "Twice 15 =" (twice 15))
2322
(println "Six times 15 =" (six-times 15)))
2423

24+
(letfn [(twice [x]
25+
(* x 2))]
26+
(->> "ola"
27+
(x)))
28+
29+
(letfn [(foo [x y]
30+
(->> x
31+
y
32+
:bar))
33+
(twice [x]
34+
(* x 2))
35+
(six-times [y]
36+
(* (twice y) 3))]
37+
(foo #{:foo :bar :biz} :foo))
38+
2539
;; vim:ft=clojure:

Diff for: clj/dev-resources/test-special-case-indent.out

+17-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
(->> "ola"
77
(x)))
88

9-
109
(->> "ola"
1110
(x))
1211

@@ -16,10 +15,25 @@
1615
(x))))
1716

1817
(letfn [(twice [x]
19-
(* x 2))
18+
(* x 2))
2019
(six-times [y]
21-
(* (twice y) 3))]
20+
(* (twice y) 3))]
2221
(println "Twice 15 =" (twice 15))
2322
(println "Six times 15 =" (six-times 15)))
2423

24+
(letfn [(twice [x]
25+
(* x 2))]
26+
(->> "ola"
27+
(x)))
28+
29+
(letfn [(foo [x y]
30+
(->> x
31+
y
32+
:bar))
33+
(twice [x]
34+
(* x 2))
35+
(six-times [y]
36+
(* (twice y) 3))]
37+
(foo #{:foo :bar :biz} :foo))
38+
2539
;; vim:ft=clojure:

0 commit comments

Comments
 (0)