Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed Jan 19, 2025
1 parent 35f3c00 commit ef90fa3
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions test/recode/task/locals_without_parens_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ defmodule Recode.Task.LocalsWithoutParensTest do
dot_formatter =
DotFormatter.from_formatter_opts(locals_without_parens: [foo: 1, bar: 2, baz: :*])

# code = """
# [x] = foo(bar(y))
# bar(y, x)
# baz(a)
# baz(a,b)
# baz(a,b,c)
# if(x == 1, do: true)
# """

code = """
[x] = foo(bar(y))
bar(y, x)
baz(a)
baz(a,b)
baz(a,b,c)
if(x == 1, do: true)
"""

expected = """
[x] = foo bar(y)
bar y, x
baz a
baz a, b
baz a, b, c
if x == 1, do: true
"""

code
Expand Down

0 comments on commit ef90fa3

Please sign in to comment.