Skip to content

Commit d5a9601

Browse files
committed
Add broadcast test
1 parent 39b3abb commit d5a9601

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/broadcast.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
using DimensionalData
44
using ArchGDAL
55

6-
6+
pyr = Pyramid("test/data/pyramidmiddle.tif")
7+
p0 = pyr .- pyr
8+
@test all(iszero, p0.base)
9+
@test all(all.(iszero, p0.levels))
10+
11+
p1 = p0 .+ 1
12+
@test sum(p1.base) == prod(size(p1.base))
13+
for l in p1.levels
14+
@test sum(l) == prod(size(l))
15+
end
716

817
end

0 commit comments

Comments
 (0)