Skip to content

Commit

Permalink
Add file_type_ext & indent_size test
Browse files Browse the repository at this point in the history
  • Loading branch information
10sr committed Sep 22, 2018
1 parent a021456 commit 7a8d1d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ert-tests/editorconfig.el
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,9 @@
(with-visit-file (concat editorconfig-secondary-ert-dir
"a.txt")
(should (eq major-mode 'conf-unix-mode)))

(with-visit-file (concat editorconfig-secondary-ert-dir
"bin/perlscript")
(should (eq major-mode 'perl-mode))
(should (eq perl-indent-level 5)))
(editorconfig-mode -1))
4 changes: 4 additions & 0 deletions ert-tests/test_files_secondary/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ file_type_emacs = conf

[a.txt]
file_type_ext = ini

[/bin/*]
file_type_ext = pl
indent_size = 5

0 comments on commit 7a8d1d7

Please sign in to comment.