Skip to content

Commit 48e123d

Browse files
committed
[#361] Add a regression test
1 parent db2f856 commit 48e123d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,12 @@ POS."
256256
(should (eq (clojure-test-face-at 2 14) 'font-lock-keyword-face))
257257
(should (eq (clojure-test-face-at 16 18) 'font-lock-function-name-face))))
258258

259+
(ert-deftest clojure-mode-syntax-table/fn ()
260+
:tags '(fontification syntax-table)
261+
(clojure-test-with-temp-buffer "(fn foo [x] x)"
262+
(should (eq (clojure-test-face-at 2 3) 'font-lock-keyword-face))
263+
(should (eq (clojure-test-face-at 5 7) 'font-lock-function-name-face))))
264+
259265
(ert-deftest clojure-mode-syntax-table/lambda-params ()
260266
:tags '(fontification syntax-table)
261267
(clojure-test-with-temp-buffer "#(+ % %2 %3)"

0 commit comments

Comments
 (0)