@@ -3,7 +3,7 @@ using SimpleDiffEq, Test
33prob = DiscreteProblem(0.5 , (0.0 , 1.0 ))
44sol = solve(prob, SimpleFunctionMap())
55
6- @test sol[1 ] == sol[end ]
6+ @test sol. u [1 ] == sol. u [end ]
77
88integrator = init(prob, SimpleFunctionMap())
99step!(integrator)
@@ -14,7 +14,7 @@ step!(integrator)
1414prob2 = DiscreteProblem(rand(4 , 2 ), (0.0 , 1.0 ))
1515sol = solve(prob2, SimpleFunctionMap())
1616
17- @test sol[1 ] == sol[end ]
17+ @test sol. u [1 ] == sol. u [end ]
1818
1919integrator = init(prob, SimpleFunctionMap())
2020step!(integrator)
@@ -25,7 +25,7 @@ step!(integrator)
2525prob = DiscreteProblem((u, p, t) -> 1.01 u, 0.5 , (0.0 , 1.0 ))
2626sol = solve(prob, SimpleFunctionMap())
2727
28- @test sol[end ] ≈ 0.505
28+ @test sol. u [end ] ≈ 0.505
2929
3030integrator = init(prob, SimpleFunctionMap())
3131step!(integrator)
@@ -37,7 +37,7 @@ step!(integrator)
3737prob = DiscreteProblem((du, u, p, t) -> du .= 1.01 .* u, rand(4 , 2 ), (0.0 , 1.0 ))
3838sol = solve(prob, SimpleFunctionMap())
3939
40- @test sol[end ] ./ sol[1 ] ≈ fill(1.01 , 4 , 2 )
40+ @test sol. u [end ] ./ sol. u [1 ] ≈ fill(1.01 , 4 , 2 )
4141
4242integrator = init(prob, SimpleFunctionMap())
4343step!(integrator)
0 commit comments