Skip to content

Commit

Permalink
fix tests for allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
EdsterG committed Sep 13, 2024
1 parent 8f9704a commit 6699108
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,10 @@ end
T
@test op(X(5), Y(2)) isa TT
@test op(X(5), Y(2)) == op(5, 2)
if (VERSION >= v"1.11-" || sizeof(T) <= 16) && sizeof(X) != 3 && sizeof(Y) != 3 # bug with [U]Int24
@test @allocated(op(X(5), Y(2))) == 0
if VERSION >= v"1.11-" || sizeof(T) <= 16
f = (op, X, Y) -> op(X(5), Y(2))
f(op, X, Y)
@test @allocated(f(op, X, Y)) == 0
end
end
end
Expand Down

0 comments on commit 6699108

Please sign in to comment.