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 d491cfd commit 14f6bceCopy full SHA for 14f6bce
test/integrator_tests.jl
@@ -1,6 +1,7 @@
1
using SciMLBase
2
-mutable struct DummySolution
3
- retcode::Any
+
+struct DummySolution
4
+ retcode::SciMLBase.ReturnCode.T
5
end
6
7
SciMLBase.solution_new_retcode(::DummySolution, code) = DummySolution(code)
@@ -73,3 +74,8 @@ end
73
74
@test integrator.sol.retcode == ReturnCode.Default
75
@test SciMLBase.check_error!(integrator) == ReturnCode.Success
76
@test integrator.sol.retcode == ReturnCode.Success
77
78
+let
79
+ integrator = DummyIntegrator()
80
+ @test 0 == @allocated SciMLBase.check_error!(integrator)
81
+end
0 commit comments