Skip to content

Commit d1fd572

Browse files
committed
Fix broadcast tests
1 parent 123cecb commit d1fd572

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/broadcast.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using LoopVectorization, Test
1111
b = rand(R,99,99,1);
1212
bl = LowDimArray{(true,true,false)}(b);
1313
@test size(bl) == size(b)
14-
@test LoopVectorization.size(bl) === (size(b,1),size(b,2),LoopVectorization.StaticInt(1))
14+
@test LoopVectorization.ArrayInterface.size(bl) === (size(b,1),size(b,2),LoopVectorization.StaticInt(1))
1515

1616
br = reshape(b, (99,99));
1717
c1 = a .+ b;
@@ -24,7 +24,7 @@ using LoopVectorization, Test
2424
br = reshape(b, (99,1,99));
2525
bl = LowDimArray{(true,false,true)}(br);
2626
@test size(bl) == size(br)
27-
@test LoopVectorization.size(bl) === (size(br,1),LoopVectorization.StaticInt(1),size(br,3))
27+
@test LoopVectorization.ArrayInterface.size(bl) === (size(br,1),LoopVectorization.StaticInt(1),size(br,3))
2828
@. c1 = a + br;
2929
fill!(c2, 99999); @turbo @. c2 = a + bl;
3030
@test c1 c2
@@ -33,7 +33,7 @@ using LoopVectorization, Test
3333
br = reshape(b, (1,99,99));
3434
bl = LowDimArray{(false,)}(br);
3535
@test size(bl) == size(br)
36-
@test LoopVectorization.size(bl) === (size(br,1),LoopVectorization.StaticInt(1),size(br,3))
36+
@test LoopVectorization.ArrayInterface.size(bl) === (LoopVectorization.StaticInt(1),size(br,2),size(br,3))
3737
@. c1 = a + br;
3838
fill!(c2, 99999);
3939
@test c1 @turbo @. c2 = a + bl
@@ -53,7 +53,7 @@ using LoopVectorization, Test
5353
end
5454
max_ = maximum(xs, dims=1);
5555
@test (@turbo exp.(xs .- LowDimArray{(false,)}(max_))) exp.(xs .- LowDimArray{(false,)}(max_))
56-
@test size(LowDimArray{(false,)}(max_)))) == size(max_)
56+
@test size(LowDimArray{(false,)}(max_)) == size(max_)
5757

5858
if T === Int32
5959
a = rand(T(1):T(100), 73, 1);

0 commit comments

Comments
 (0)