Skip to content

Commit 1d5c2bf

Browse files
fix tests
1 parent 205ad73 commit 1d5c2bf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
using StaticArrays, ArrayInterfaceCore, ArrayInterfaceStaticArraysCore, Test
22

33
x = @SVector [1,2,3]
4-
@test ArrayInterface.ismutable(x) == false
5-
@test ArrayInterface.ismutable(view(x, 1:2)) == false
6-
@test ArrayInterface.can_setindex(typeof(x)) == false
7-
@test ArrayInterface.buffer(x) == x.data
4+
@test ArrayInterfaceCore.ismutable(x) == false
5+
@test ArrayInterfaceCore.ismutable(view(x, 1:2)) == false
6+
@test ArrayInterfaceCore.can_setindex(typeof(x)) == false
7+
@test ArrayInterfaceCore.buffer(x) == x.data
88

99
x = @MVector [1,2,3]
10-
@test ArrayInterface.ismutable(x) == true
11-
@test ArrayInterface.ismutable(view(x, 1:2)) == true
10+
@test ArrayInterfaceCore.ismutable(x) == true
11+
@test ArrayInterfaceCore.ismutable(view(x, 1:2)) == true
1212

1313
A = @SMatrix(randn(5, 5))
14-
@test ArrayInterface.lu_instance(A) isa typeof(lu(A))
14+
@test ArrayInterfaceCore.lu_instance(A) isa typeof(lu(A))
1515
A = @MMatrix(randn(5, 5))
16-
@test ArrayInterface.lu_instance(A) isa typeof(lu(A))
16+
@test ArrayInterfaceCore.lu_instance(A) isa typeof(lu(A))
1717

1818
x = @SMatrix rand(Float32, 2, 2)
1919
y = @SVector rand(4)
20-
yr = ArrayInterface.restructure(x, y)
20+
yr = ArrayInterfaceCore.restructure(x, y)
2121
@test yr isa SMatrix{2, 2}
2222
@test Base.size(yr) == (2,2)
2323
@test vec(yr) == vec(y)
2424
z = rand(4)
25-
zr = ArrayInterface.restructure(x, z)
25+
zr = ArrayInterfaceCore.restructure(x, z)
2626
@test zr isa SMatrix{2, 2}
2727
@test Base.size(zr) == (2,2)
2828
@test vec(zr) == vec(z)

0 commit comments

Comments
 (0)