Skip to content

Commit 60047aa

Browse files
committed
Small changes to existing tests
1 parent 877310a commit 60047aa

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

elixir-mode.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,7 @@ Argument FILE-NAME ."
413413

414414
(defun elixir-quoted--initialize-buffer (quoted)
415415
(pop-to-buffer elixir-quoted--buffer-name)
416-
(setq buffer-undo-list nil) ; Get rid of undo information from
417-
; previous expansions
416+
(setq buffer-undo-list nil) ; Get rid of undo information from previous expansions
418417
(let ((inhibit-read-only t)
419418
(buffer-undo-list t)) ; Ignore undo information
420419
(erase-buffer)

test/elixir-mode-font-test.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ buffer."
5656
(should (eq (elixir-test-face-at 53) 'font-lock-type-face))
5757
(should (eq (elixir-test-face-at 68) 'font-lock-type-face))
5858
(should (eq (elixir-test-face-at 72) 'font-lock-type-face))
59+
;; no face for function call
5960
(should (eq (elixir-test-face-at 79) nil))))
6061

6162
(ert-deftest elixir-mode-syntax-table/fontify-regex-with-quote ()
@@ -140,13 +141,15 @@ end"
140141
(elixir-test-with-temp-buffer
141142
":oriole
142143
:andale
143-
:ms2pid"
144+
:ms2pid
145+
:CapitalizedAtom"
144146
(should (eq (elixir-test-face-at 3) 'elixir-atom-face))
145147
(should (eq (elixir-test-face-at 5) 'elixir-atom-face))
146148
(should (eq (elixir-test-face-at 10) 'elixir-atom-face))
147149
(should (eq (elixir-test-face-at 13) 'elixir-atom-face))
148150
(should (eq (elixir-test-face-at 18) 'elixir-atom-face))
149-
(should (eq (elixir-test-face-at 23) 'elixir-atom-face))))
151+
(should (eq (elixir-test-face-at 23) 'elixir-atom-face))
152+
(should (eq (elixir-test-face-at 26) 'elixir-atom-face))))
150153

151154
(ert-deftest elixir-mode-syntax-table/fontify-map-keys ()
152155
:tags '(fontification map syntax-table)

0 commit comments

Comments
 (0)