Skip to content

Commit

Permalink
Update elixir-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jun 29, 2014
1 parent 9f710d8 commit 53b6b01
Show file tree
Hide file tree
Showing 5 changed files with 495 additions and 177 deletions.
35 changes: 0 additions & 35 deletions bundles/elixir/elixir-mode-setup.el

This file was deleted.

27 changes: 27 additions & 0 deletions bundles/elixir/elixir-mode-tests.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
(require 'ert)
(require 'ert-x)

(defmacro* elixir-deftest (name args &body body)
(declare (indent 2)
(&define :name test name sexp
[&optional [":documentation" stringp]]
[&optional [":expected-result" sexp]]
def-body))
`(ert-deftest ,(intern (format "elixir-ert-%s" name)) ()
""
,@args
(let ((elixir-smie-verbose-p t))
,@body)))

(defmacro* elixir-ert-with-test-buffer ((&rest args) initial-contents &body body)
(declare (indent 2))
`(ert-with-test-buffer (,@args)
(elixir-mode)
(insert ,initial-contents)
,@body))

(load "test/elixir-mode-indentation-tests.el")
(load "test/elixir-mode-tokenizer-hl-tests.el")

(provide 'elixir-mode-tests)
;;; elixir-mode-tests.el ends here
Loading

0 comments on commit 53b6b01

Please sign in to comment.