Skip to content

Commit

Permalink
One more test
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro3 committed May 18, 2024
1 parent a4a7e3e commit 6b7d3a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/postproc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
@test sum(demf.-dem .> 0) == 40
@test all([c[pits[cc]]==cc for cc=axes(pits)[1]]) # pit in catchment of same color
@test all([c[sinks[cc]]==cc for cc=axes(sinks)[1]]) # sink in catchment of same color

area2 = WWF.waterflows(dem, bnd_as_sink=true)[1]
lakes = demf.>dem
@test area[.!lakes]==area2[.!lakes]
end

@testset "catchment" begin
Expand Down

0 comments on commit 6b7d3a1

Please sign in to comment.