Skip to content

Commit 47d39ea

Browse files
authored
small fixes for the isassigned tests (#18)
1 parent 107094a commit 47d39ea

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/runtests.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ using FixedSizeArrays
9393
end
9494

9595
@testset "`isassigned`" begin
96-
for dim_count 1:3
96+
for dim_count 0:3
9797
for elem_type (Int, FixedSizeMatrix{Nothing})
9898
size = ntuple(Returns(3), dim_count)
9999
a = FixedSizeArray{elem_type, dim_count}(undef, size)
@@ -103,15 +103,15 @@ using FixedSizeArrays
103103
end
104104
end
105105
end
106-
@testset "some assigned" begin
107-
a = FixedSizeMatrix{FixedSizeMatrix{Nothing}}(undef, 3, 3)
108-
assigned_inds = ((1, 2), (2, 3), (3, 3))
109-
for ij assigned_inds
110-
a[ij...] = FixedSizeMatrix{Nothing}(undef, 1, 1)
111-
end
112-
for ij Iterators.product(1:3, 1:3)
113-
@test isassigned(a, ij...) == (ij assigned_inds)
114-
end
106+
end
107+
@testset "some assigned" begin
108+
a = FixedSizeMatrix{FixedSizeMatrix{Nothing}}(undef, 3, 3)
109+
assigned_inds = ((1, 2), (2, 3), (3, 3))
110+
for ij assigned_inds
111+
a[ij...] = FixedSizeMatrix{Nothing}(undef, 1, 1)
112+
end
113+
for ij Iterators.product(1:3, 1:3)
114+
@test isassigned(a, ij...) == (ij assigned_inds)
115115
end
116116
end
117117
end

0 commit comments

Comments
 (0)