using Test
import ArchGDAL; const AG = ArchGDAL

@testset "Iterator interface Window Iterator" begin
    ds = AG.readraster("ospy/data4/aster.img")
    band = AG.getband(ds, 1)
    window = AG.windows(band)
    @test Base.IteratorSize(window) == Base.HasShape{2}()
    @test Base.IteratorEltype(window) == Base.HasEltype()
    @test eltype(window) == Tuple{UnitRange{Int},UnitRange{Int}}
    @test size(window) == (79, 89)
    @test length(window) == 7031
end
