Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added: collection of failing tests #128

Merged
merged 1 commit into from
Oct 4, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions test/elixir-mode-font-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,26 @@ end"
(should (eq (elixir-test-face-at 3) 'font-lock-variable-name-face))
(should (eq (elixir-test-face-at 11) 'font-lock-string-face))))

(ert-deftest elixir-mode-syntax-table/fontify-continuation-lines-assignment ()
:expected-result :failed
:tags '(fontification syntax-table)
(elixir-test-with-temp-buffer
"some_var =
some_expr"
(should (eq (elixir-test-face-at 1) 'font-lock-variable-name-face))))

(ert-deftest elixir-mode-syntax-table/fontify-assignment-with-pattern/1 ()
:expected-result :failed
:tags '(fontification syntax-table)
(elixir-test-with-temp-buffer
"{x, y} = some_expr"
(should (eq (elixir-test-face-at 2) 'font-lock-variable-name-face))
(should (eq (elixir-test-face-at 5) 'font-lock-variable-name-face))))

(ert-deftest elixir-mode-syntax-table/fontify-assignment-with-pattern/2 ()
:expected-result :failed
:tags '(fontification syntax-table)
(elixir-test-with-temp-buffer
"[h|t] = some_expr"
(should (eq (elixir-test-face-at 2) 'font-lock-variable-name-face))
(should (eq (elixir-test-face-at 4) 'font-lock-variable-name-face))))
45 changes: 45 additions & 0 deletions test/elixir-mode-indentation-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,17 @@ def str(s, sub, start_pos, end_pos) when is_binary(s) and is_binary(sub) do # an
end
")

(elixir-def-indentation-test indent-continuation-lines-assignment
(:expected-result :failed
:tags '(indentation))
"
some_var =
some_expr
" "
some_var =
some_expr
")

(elixir-def-indentation-test indent-last-commented-line
()
"
Expand Down Expand Up @@ -564,6 +575,21 @@ def foo do #comment
:bar
end")

(elixir-def-indentation-test indent-single-line-match
(:expected-result :failed
:tags '(indentation))
"
case x do
a -> b
c -> d
end
" "
case x do
a -> b
c -> d
end
")

(elixir-def-indentation-test indent-multiline-match ()
"
def foo do
Expand Down Expand Up @@ -616,6 +642,25 @@ def foo do
end"
)

(elixir-def-indentation-test indent-mixed-match
(:expected-result :failed
:tags '(indentation))
"
case x do
a -> b
c ->
d
e -> f
end
" "
case x do
a -> b
c ->
d
e -> f
end
")

(elixir-def-indentation-test indent-after-require-Record
()
;; Mind the significant whitespace after `Record' in each case. There should
Expand Down