Skip to content

Commit 0cfcb41

Browse files
properly test allocs
1 parent c6401af commit 0cfcb41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/static/static_checks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using DiffEqBase, ComponentArrays, AllocCheck
1+
using DiffEqBase, ComponentArrays, AllocCheck, Test
22

33
u = ComponentArray(x=1.0, y=0.0, z=0.0)
44
t = 0.0
5-
@test @allocated(DiffEqBase.ODE_DEFAULT_NORM(u, t)) < 20
5+
@test length(check_allocs(DiffEqBase.ODE_DEFAULT_NORM, (typeof(u), typeof(t)))) == 0

0 commit comments

Comments
 (0)