Skip to content

Commit

Permalink
Add question equal assignment test
Browse files Browse the repository at this point in the history
  • Loading branch information
syohex committed Oct 19, 2015
1 parent 76b4c45 commit e410058
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/coffee-highlight.el
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,16 @@ foo =
(forward-cursor-on "foo")
(should-not (face-at-cursor-p 'font-lock-variable-name-face))))

(ert-deftest local-assignment-question-equal ()
"Highlight question equal assignment"

(with-coffee-temp-buffer
"foo = 10
foo ?= 20"

(forward-cursor-on "foo" 2)
(should (face-at-cursor-p 'font-lock-variable-name-face))))

;;
;; Lambda expression
;;
Expand Down

0 comments on commit e410058

Please sign in to comment.