Skip to content

Commit 642b1e8

Browse files
committed
Declare indentation spec for test util functions
And auto-indent some lines
1 parent 9400ccf commit 642b1e8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

test/clojure-mode-font-lock-test.el

+5-4
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ TESTS are lists of the form (content (start end expected-face)*). For each test
7777
check that each `expected-face` is found in `content` between `start` and `end`.
7878
7979
DESCRIPTION is the description of the spec."
80+
(declare (indent 1))
8081
`(it ,description
8182
(dolist (test (quote ,tests))
8283
(apply #'expect-faces-at test))))
@@ -797,8 +798,8 @@ DESCRIPTION is the description of the spec."
797798
("(def foo \"usage\" \"hello\" )"
798799
(18 24 font-lock-string-face))
799800

800-
("(def foo \"usage\" \n \"hello\")"
801-
(21 27 font-lock-string-face))
801+
("(def foo \"usage\" \n \"hello\")"
802+
(21 27 font-lock-string-face))
802803

803804
("(def foo \n \"usage\" \"hello\")"
804805
(13 19 font-lock-doc-face))
@@ -864,8 +865,8 @@ DESCRIPTION is the description of the spec."
864865

865866
(when-fontifying-it "should handle keyword-meta"
866867
("^:meta-data"
867-
(1 1 nil)
868-
(2 11 clojure-keyword-face)))
868+
(1 1 nil)
869+
(2 11 clojure-keyword-face)))
869870

870871
(when-fontifying-it "should handle a keyword with allowed characters"
871872
(":aaa#bbb"

test/utils/test-helper.el

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
(defmacro with-clojure-buffer (text &rest body)
3636
"Create a temporary buffer, insert TEXT, switch to clojure-mode and evaluate BODY."
37+
(declare (indent 1))
3738
`(with-temp-buffer
3839
(erase-buffer)
3940
(insert ,text)
@@ -49,6 +50,7 @@ AFTER.
4950
BODY should contain the refactoring that transforms BEFORE into AFTER.
5051
5152
DESCRIPTION is the description of the spec."
53+
(declare (indent 1))
5254
`(it ,description
5355
(with-clojure-buffer ,before
5456
,@body

0 commit comments

Comments
 (0)