Skip to content

Commit fe449ca

Browse files
committed
Add indentation tests for specify and specify!
1 parent 23f332a commit fe449ca

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/clojure-mode-indentation-test.el

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,24 @@ values of customisable variables."
272272
[this]
273273
\"Why is this over here?\"))")
274274

275+
(def-full-indent-test specify
276+
"(specify obj
277+
ISwap
278+
(-swap!
279+
([this f] (reset! this (f @this)))
280+
([this f a] (reset! this (f @this a)))
281+
([this f a b] (reset! this (f @this a b)))
282+
([this f a b xs] (reset! this (apply f @this a b xs)))))")
283+
284+
(def-full-indent-test specify!
285+
"(specify! obj
286+
ISwap
287+
(-swap!
288+
([this f] (reset! this (f @this)))
289+
([this f a] (reset! this (f @this a)))
290+
([this f a b] (reset! this (f @this a b)))
291+
([this f a b xs] (reset! this (apply f @this a b xs)))))")
292+
275293
(def-full-indent-test non-symbol-at-start
276294
"{\"1\" 2
277295
*3 4}")

0 commit comments

Comments
 (0)