Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eliascarv committed Dec 18, 2024
1 parent c8e8af5 commit 243c58a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/transforms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,17 @@ end
r, c = TB.apply(f, d)
@test r == GeometrySet([t2, t3])

f = ValidCoords(Mercator)
t1 = Triangle(latlon(-90, 0), latlon(-45, 30), latlon(-45, -30))
t2 = Triangle(latlon(-45, 0), latlon(0, 30), latlon(0, -30))
t3 = Triangle(latlon(0, -30), latlon(0, 30), latlon(45, 0))
t4 = Triangle(latlon(45, -30), latlon(45, 30), latlon(90, 0))
m1 = Multi([t1, t4])
m2 = Multi([t2, t3])
d = GeometrySet([m1, m2])
r, c = TB.apply(f, d)
@test r == GeometrySet([m2])

f = ValidCoords(Mercator)
b1 = Box(latlon(-90, -30), latlon(-30, 30))
b2 = Box(latlon(-30, -30), latlon(30, 30))
Expand Down

0 comments on commit 243c58a

Please sign in to comment.