We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e10c3d commit 2297fc1Copy full SHA for 2297fc1
lib/elixir/test/elixir/binary/inspect_test.exs
@@ -188,6 +188,10 @@ end
188
defmodule Binary.Inspect.FunctionTest do
189
use ExUnit.Case, async: true
190
191
+ def f do
192
+ fn() -> :ok end
193
+ end
194
+
195
test :funs do
196
bin = inspect(fn(x) -> x + 1 end)
197
assert '#Fun<' ++ _ = binary_to_list(bin)
@@ -198,6 +202,11 @@ defmodule Binary.Inspect.FunctionTest do
198
202
assert bin == "function(Enum.map/2)"
199
203
end
200
204
205
+ test :external_elixir_fun do
206
+ bin = inspect(f)
207
+ assert '#Fun<' ++ _ = binary_to_list(bin)
208
209
201
210
test :external_erlang do
211
bin = inspect(function(:lists.map/2))
212
assert bin == "function(:lists.map/2)"
0 commit comments