Skip to content

Commit

Permalink
regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust committed Aug 31, 2023
1 parent e332dc7 commit 877e4d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/style/single_node_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ defmodule Styler.Style.SingleNodeTest do
)
end

test "regression: ignores unquoted cases" do
assert_style("case foo, do: unquote(quoted)")
end

test "removes a double-var assignment when one var is _" do
assert_style("def foo(_ = bar), do: bar", "def foo(bar), do: bar")
assert_style("def foo(bar = _), do: bar", "def foo(bar), do: bar")
Expand Down

0 comments on commit 877e4d6

Please sign in to comment.