Skip to content

Commit

Permalink
Updating the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
natgeo-wong committed Sep 6, 2024
1 parent a32c394 commit cbd0252
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using Test
IDvec,_,_ = GeoRegions.listall()
for ID in IDvec
@test isID(ID,verbose=false);
@test isGeoRegion(GeoRegion(ID,verbose=false));
@test isGeoRegion(GeoRegion(ID),verbose=false);
end

end
Expand All @@ -16,7 +16,7 @@ end

@test !isGeoRegion("TRP",throw=false)
geo1 = RectRegion("TRP","GLB","Tropics",[30,-30,360,0])
geo2 = RectRegion("TRP_DTP","GLB","Tropics",[10,-10,360,0])
geo2 = RectRegion("TRP_DTP","GLB","Deep Tropics",[10,-10,360,0])
@test isID("TRP",throw=false)
@test isGeoRegion(geo1,throw=false)
@test rm(geo1)
Expand All @@ -37,11 +37,12 @@ end

@test !isGeoRegion("TRP",path=pwd(),throw=false)
geo1 = RectRegion("TRP","GLB","Tropics",[30,-30,360,0],path=pwd())
@test isID("TRP",throw=false)
@test isID("TRP",path=pwd(),throw=false)
@test isGeoRegion(geo1,path=pwd(),throw=false)
@test !isGeoRegion(geo1,throw=false)
@test !rm(geo1,throw=false)
@test rm(geo1,path=pwd())
@test isGeoRegion(geo1,throw=false)
@test !isGeoRegion(geo1,path=homedir(),throw=false)
@test !rm(geo1,path=homedir())
@test rm(geo1)
@test !isGeoRegion(geo1,throw=false)

end
Expand Down

0 comments on commit cbd0252

Please sign in to comment.