Skip to content

Commit 35b1c8c

Browse files
Merge pull request #258 from SciML/test
update and fix tests
2 parents 86a0e81 + d9990fe commit 35b1c8c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/partitions_test.jl

Lines changed: 3 additions & 3 deletions
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])
@@ -190,7 +190,7 @@ up = ap .+ 1
190190
up = 2 .* ap .+ 1
191191
@test typeof(ap) == typeof(up)
192192

193-
@testset "ArrayInterfaceCore.ismutable(ArrayPartition($a, $b)) == $r" for (a, b, r) in ((1,
193+
@testset "ArrayInterface.ismutable(ArrayPartition($a, $b)) == $r" for (a, b, r) in ((1,
194194
2,
195195
false),
196196
([
@@ -205,7 +205,7 @@ up = 2 .* ap .+ 1
205205
2,
206206
],
207207
true))
208-
@test ArrayInterfaceCore.ismutable(ArrayPartition(a, b)) == r
208+
@test ArrayInterface.ismutable(ArrayPartition(a, b)) == r
209209
end
210210

211211
# Test unary minus

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)