Skip to content

Commit 1adffbc

Browse files
update and fix tests
1 parent 86a0e81 commit 1adffbc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/partitions_test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using RecursiveArrayTools, Test, Statistics, ArrayInterfaceCore
1+
using RecursiveArrayTools, Test, Statistics, ArrayInterface
22
A = (rand(5), rand(5))
33
p = ArrayPartition(A)
44
@test (p.x[1][1], p.x[2][1]) == (p[1], p[6])

test/upstream.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
using OrdinaryDiffEq, NLsolve, RecursiveArrayTools, Test, ArrayInterfaceCore
1+
using OrdinaryDiffEq, NLsolve, RecursiveArrayTools, Test, ArrayInterface
22
function lorenz(du, u, p, t)
33
du[1] = 10.0 * (u[2] - u[1])
44
du[2] = u[1] * (28.0 - u[3]) - u[2]
55
du[3] = u[1] * u[2] - (8 / 3) * u[3]
66
end
77
u0 = ArrayPartition([1.0, 0.0], [0.0])
8-
@test ArrayInterfaceCore.zeromatrix(u0) isa Matrix
8+
@test ArrayInterface.zeromatrix(u0) isa Matrix
99
tspan = (0.0, 100.0)
1010
prob = ODEProblem(lorenz, u0, tspan)
1111
sol = solve(prob, Tsit5())
@@ -39,16 +39,16 @@ end
3939
@test solve(ODEProblem(dyn,
4040
ArrayPartition(ArrayPartition(zeros(1), [-1.0]),
4141
ArrayPartition(zeros(1), [0.75])),
42-
(0.0, 1.0)), AutoTsit5(Rodas5())).retcode == :Success
42+
(0.0, 1.0)), AutoTsit5(Rodas5())).retcode == ReturnCode.Success
4343

4444
if VERSION < v"1.7"
4545
@test solve(ODEProblem(dyn,
4646
ArrayPartition(ArrayPartition(zeros(1), [-1.0]),
4747
ArrayPartition(zeros(1), [0.75])),
48-
(0.0, 1.0)), Rodas5()).retcode == :Success
48+
(0.0, 1.0)), Rodas5()).retcode == ReturnCode.Success
4949
else
5050
@test_broken solve(ODEProblem(dyn,
5151
ArrayPartition(ArrayPartition(zeros(1), [-1.0]),
5252
ArrayPartition(zeros(1), [0.75])),
53-
(0.0, 1.0)), Rodas5()).retcode == :Success
53+
(0.0, 1.0)), Rodas5()).retcode == ReturnCode.Success
5454
end

0 commit comments

Comments
 (0)