Skip to content

Commit 3cd098a

Browse files
alloc test passes on later versions
1 parent 7376381 commit 3cd098a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

test/basic.jl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,16 @@ test_apply_noalloc(H, du, u, p, t) = @test_broken (@allocations apply_op!(H, du,
292292
return nothing
293293
end
294294

295-
test_apply_noalloc_new(H, du, v, u, p, t) = @test_broken (@allocations apply_op_new!(H, du, v, u, p, t)) == 0
295+
if VERSION >= v"1.11"
296+
test_apply_noalloc_new(H, du, v, u, p, t) = @test (@allocations apply_op_new!(H, du, v, u, p, t)) == 0
296297

297-
@allocations apply_op_new!(op, w, v, u, p, t) # warmup
298-
test_apply_noalloc_new(op, w, v, u, p, t)
299-
300-
## Original allocations test
301-
@allocations apply_op!(op, v, u, p, t) # warmup
302-
test_apply_noalloc(op, v, u, p, t)
298+
@allocations apply_op_new!(op, w, v, u, p, t) # warmup
299+
test_apply_noalloc_new(op, w, v, u, p, t)
300+
301+
## Original allocations test
302+
@allocations apply_op!(op, v, u, p, t) # warmup
303+
test_apply_noalloc(op, v, u, p, t)
304+
end
303305

304306
## Time-Dependent Coefficients
305307

0 commit comments

Comments
 (0)