Skip to content

Commit 22a51d4

Browse files
committed
All good
1 parent bc93456 commit 22a51d4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

lib/elixir/test/elixir/module/types/expr_test.exs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,17 @@ defmodule Module.Types.ExprTest do
170170
end
171171

172172
test "bad argument" do
173-
assert typeerror!([%a{}], (&String.to_integer/1).(a)) == ~l"""
174-
expected a 2-arity function on call:
173+
assert typeerror!([], (&String.to_integer/1).(:foo))
174+
|> strip_ansi() == ~l"""
175+
incompatible types given on function application:
175176
176-
(&String.to_integer/1).(a1, a2)
177+
(&String.to_integer/1).(:foo)
177178
178-
but got function with arity 1:
179+
given types:
180+
181+
:foo
182+
183+
but function has type:
179184
180185
(binary() -> integer())
181186
"""

0 commit comments

Comments
 (0)