We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dd0f7c commit f2a5c83Copy full SHA for f2a5c83
lib/ModelingToolkitBase/test/initializationsystem.jl
@@ -1524,7 +1524,11 @@ end
1524
prob.ps[Initial(y[1])] = 0.5
1525
integ = init(prob, Tsit5(); abstol = 1.0e-6, reltol = 1.0e-6)
1526
@test integ[x] ≈ 0.5
1527
- @test integ[y] ≈ [0.5, sqrt(3.5)] atol = 1.0e-6
+ if VERSION < v"1.11" && !@isdefined(ModelingToolkit) # on lts with MTKBase, this flips sign
1528
+ @test integ[y] ≈ [0.5, -sqrt(3.5)] atol = 1.0e-6
1529
+ else
1530
+ @test integ[y] ≈ [0.5, sqrt(3.5)] atol = 1.0e-6
1531
+ end
1532
end
1533
1534
@testset "Issue#3342" begin
0 commit comments