Skip to content

Commit

Permalink
test case from #217
Browse files Browse the repository at this point in the history
  • Loading branch information
novaugust committed Feb 14, 2025
1 parent 5a23833 commit e3da97e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
erlang 26.1.2
elixir 1.16.0-otp-26
erlang 27.1.1
elixir 1.17.2-otp-27
6 changes: 6 additions & 0 deletions test/style/blocks_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,12 @@ defmodule Styler.Style.BlocksTest do
""")
end

test "else clause arrow" do

Check failure on line 400 in test/style/blocks_test.exs

View workflow job for this annotation

GitHub Actions / Ex1.15.8/OTP25.3.2

test with statements else clause arrow (Styler.Style.BlocksTest)

Check failure on line 400 in test/style/blocks_test.exs

View workflow job for this annotation

GitHub Actions / Ex1.16.3/OTP25.3.2

test with statements else clause arrow (Styler.Style.BlocksTest)

Check failure on line 400 in test/style/blocks_test.exs

View workflow job for this annotation

GitHub Actions / Ex1.17.3/OTP25.3.2

test with statements else clause arrow (Styler.Style.BlocksTest)
assert_style """
with {:ok, number} <- foo(), true <- is_even(number), do: :even, else: (_ -> :odd)
""", ""
end

test "removes identity else clauses" do
assert_style(
"""
Expand Down

0 comments on commit e3da97e

Please sign in to comment.