Skip to content

Commit e7fceb2

Browse files
committed
Fix map test
1 parent 8a95ac5 commit e7fceb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,15 @@ end
141141
end
142142

143143
@testitem "Map of pyramids" begin
144+
using DimensionalData
144145
pyr1 = Pyramid(fill(1,X(1:128),Y(1:128)), tilesize=16)
145146
pyr2 = Pyramid(fill(1, X(1:128),Y(1:128)), tilesize=16, resampling_method=sum)
146147
pyr1_neg = map(x-> x-1, pyr1)
147148
@test all(all.(iszero, pyr1_neg.levels))
148149
@test iszero(pyr1_neg.base)
149150
pyr2_neg = map(x-> x-1, pyr2)
150151
@test pyr2_neg.levels[1][1,1] == 3
151-
152+
152153
pyrsum = map((x,y) -> x + y, pyr1, pyr2)
153154
@test pyrsum[100,30] == 2
154155
@test pyrsum.levels[1][10,10] == 5

0 commit comments

Comments
 (0)