Skip to content

Commit

Permalink
Fix failing test on Julia 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Jan 16, 2024
1 parent 1799fa7 commit eb1e957
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ end

# Test functions from the CppTestFunctions module
@test CppTestFunctions.concatenate_numbers(4, 2.) == "42"
@test startswith(methods(CppTestFunctions.concatenate_numbers_with_named_args)[1].slot_syms, "#self#\0i\0d\0")
if VERSION < v"1.7"
@test startswith(methods(CppTestFunctions.concatenate_numbers_with_named_args).ms[1].slot_syms, "#self#\0i\0d\0")
else
@test startswith(methods(CppTestFunctions.concatenate_numbers_with_named_args)[1].slot_syms, "#self#\0i\0d\0")
end
@test CppTestFunctions.concatenate_numbers_with_kwargs(d=2., i=4) == "42"
@test CppTestFunctions.concatenate_numbers_with_default_values(3) == "35.2"
@test CppTestFunctions.concatenate_numbers_with_default_values_of_different_type(3) == "35"
Expand Down

0 comments on commit eb1e957

Please sign in to comment.