Skip to content

Commit

Permalink
Use a different test object for funs
Browse files Browse the repository at this point in the history
OTP24 apparently does not correctly recognize remote funs
(`fun mod:func/1`) in `is_fun`.
  • Loading branch information
filmor committed Feb 13, 2024
1 parent d79d918 commit 63ec23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustler_tests/test/term_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ defmodule RustlerTest.TermTest do
assert RustlerTest.term_type([]) == :list
assert RustlerTest.term_type({:ok, 42}) == :tuple
assert RustlerTest.term_type(self()) == :pid
assert RustlerTest.term_type(&Function.identity/1) == :fun
assert RustlerTest.term_type(& &1) == :fun
assert RustlerTest.term_type(make_ref()) == :reference
end
end

0 comments on commit 63ec23c

Please sign in to comment.