Skip to content

Commit 58697cf

Browse files
author
Pietro Vertechi
committed
tests
1 parent b7c9f89 commit 58697cf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/runtests.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ end
1818
end
1919

2020
@testset "indexstyle" begin
21-
style1 = @inferred IndexStyle(StructArray(a=rand(10,10), b=view(rand(100,100), 1:10, 1:10)))
22-
@test style1 isa IndexCartesian
23-
style2 = @inferred IndexStyle(StructArray(a=rand(10,10), b=rand(10,10)))
24-
@test style2 isa IndexLinear
21+
@inferred IndexStyle(StructArray(a=rand(10,10), b=view(rand(100,100), 1:10, 1:10)))
22+
T = typeof(StructArray(a=rand(10,10), b=view(rand(100,100), 1:10, 1:10)))
23+
@test IndexStyle(T) === IndexCartesian()
24+
@inferred IndexStyle(StructArray(a=rand(10,10), b=rand(10,10)))
25+
T = typeof(StructArray(a=rand(10,10), b=rand(10,10)))
26+
@test IndexStyle(T) === IndexLinear()
2527
end
2628

2729
@testset "replace_storage" begin

0 commit comments

Comments
 (0)