Skip to content

Commit d557962

Browse files
Fix last few details
1 parent 58673de commit d557962

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/common_interface/initialization.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ end
3535
prob = DAEProblem(sys, [D(x) => cbrt(4), D(y) => -1 / cbrt(4), p => 1.0], (0.0, 0.4))
3636
@testset "OverrideInit" begin
3737
integ = init(prob, IDA())
38-
@test integ.initializealg isa Sundials.SundialsDefaultInit
38+
@test integ.initializealg isa Sundials.DefaultInit
3939
@test integ[x] 1.0
4040
@test integ[y] cbrt(4)
4141
@test integ.ps[p] 1.0
@@ -48,7 +48,8 @@ end
4848
@test sol.ps[q] sqrt(2)
4949
end
5050
@testset "CheckInit" begin
51-
@test_throws SciMLBase.CheckInitFailureError init(prob, IDA(); initializealg = SciMLBase.CheckInit())
51+
prob = DAEProblem(sys, [D(x) => cbrt(4), D(y) => -1 / cbrt(4), p => 1.0], (0.0, 0.4))
52+
@test_throws Any init(prob, IDA(); initializealg = SciMLBase.CheckInit())
5253
# Create a new problem with correct initial values
5354
# D(x) = p*y = 1*cbrt(4) = cbrt(4)
5455
# D(y) = -x²/y²*D(x) = -1/cbrt(4)²*cbrt(4) = -1/cbrt(4)

0 commit comments

Comments
 (0)