From 63ec23c7653488746d0ad587cd49980a1cd9ed4f Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Sat, 10 Feb 2024 23:53:54 +0100 Subject: [PATCH] Use a different test object for funs OTP24 apparently does not correctly recognize remote funs (`fun mod:func/1`) in `is_fun`. --- rustler_tests/test/term_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustler_tests/test/term_test.exs b/rustler_tests/test/term_test.exs index 3b59d3b9..35bbab9a 100644 --- a/rustler_tests/test/term_test.exs +++ b/rustler_tests/test/term_test.exs @@ -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