Skip to content

Commit

Permalink
fixup! Add test cases for special case indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
axvr committed Jan 14, 2021
1 parent dcb3403 commit 8be7a7f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
16 changes: 15 additions & 1 deletion clj/dev-resources/test-special-case-indent.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
(->> "ola"
(x)))


(->> "ola"
(x))

Expand All @@ -22,4 +21,19 @@
(println "Twice 15 =" (twice 15))
(println "Six times 15 =" (six-times 15)))

(letfn [(twice [x]
(* x 2))]
(->> "ola"
(x)))

(letfn [(foo [x y]
(->> x
y
:bar))
(twice [x]
(* x 2))
(six-times [y]
(* (twice y) 3))]
(foo #{:foo :bar :biz} :foo))

;; vim:ft=clojure:
20 changes: 17 additions & 3 deletions clj/dev-resources/test-special-case-indent.out
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
(->> "ola"
(x)))


(->> "ola"
(x))

Expand All @@ -16,10 +15,25 @@
(x))))

(letfn [(twice [x]
(* x 2))
(* x 2))
(six-times [y]
(* (twice y) 3))]
(* (twice y) 3))]
(println "Twice 15 =" (twice 15))
(println "Six times 15 =" (six-times 15)))

(letfn [(twice [x]
(* x 2))]
(->> "ola"
(x)))

(letfn [(foo [x y]
(->> x
y
:bar))
(twice [x]
(* x 2))
(six-times [y]
(* (twice y) 3))]
(foo #{:foo :bar :biz} :foo))

;; vim:ft=clojure:

0 comments on commit 8be7a7f

Please sign in to comment.