Skip to content

Commit

Permalink
🤖 Format .jl files (#179)
Browse files Browse the repository at this point in the history
Co-authored-by: juliohm <[email protected]>
  • Loading branch information
github-actions[bot] and juliohm authored Sep 23, 2024
1 parent c10ad9c commit a2bbbc0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/crs/conversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -464,26 +464,26 @@
@test allapprox(c2, LatLonAlt{ITRF{2008}}(T(30), T(40), T(1.0000261394307017)))
c3 = convert(LatLonAlt{WGS84{1762}}, c2)
@test allapprox(c3, c1)

c1 = LatLonAlt{WGS84{1762}}(T(35), T(45), T(1))
c2 = convert(LatLonAlt{ITRF{2008}}, c1)
@test allapprox(c2, LatLonAlt{ITRF{2008}}(T(35), T(45), T(1.0000344086438417)))
c3 = convert(LatLonAlt{WGS84{1762}}, c2)
@test allapprox(c3, c1)

# ITRF2008 to ITRF2020
c1 = LatLonAlt{ITRF{2008}}(T(30), T(40), T(1))
c2 = convert(LatLonAlt{ITRF{2020}}, c1)
@test allapprox(c2, LatLonAlt{ITRF{2020}}(T(29.999999988422587), T(39.99999998545356), T(0.9975402476266026)))
c3 = convert(LatLonAlt{ITRF{2008}}, c2)
@test allapprox(c3, c1)

c1 = LatLonAlt{ITRF{2008}}(T(35), T(45), T(1))
c2 = convert(LatLonAlt{ITRF{2020}}, c1)
@test allapprox(c2, LatLonAlt{ITRF{2020}}(T(34.99999999095351), T(44.99999998605742), T(0.9973427625373006)))
c3 = convert(LatLonAlt{ITRF{2008}}, c2)
@test allapprox(c3, c1)

c1 = LatLonAlt{WGS84{1762}}(T(30), T(40), T(1))
c2 = LatLonAlt{ITRF{2008}}(T(30), T(40), T(1))
@inferred convert(LatLonAlt{ITRF{2008}}, c1)
Expand All @@ -497,13 +497,13 @@
@test allapprox(c2, GeocentricLatLonAlt{ITRF{2008}}(T(30), T(40), T(1.0000264029949903)))
c3 = convert(GeocentricLatLonAlt{WGS84{1762}}, c2)
@test allapprox(c3, c1)

c1 = GeocentricLatLonAlt{WGS84{1762}}(T(35), T(45), T(1))
c2 = convert(GeocentricLatLonAlt{ITRF{2008}}, c1)
@test allapprox(c2, GeocentricLatLonAlt{ITRF{2008}}(T(35), T(45), T(1.0000347206369042)))
c3 = convert(GeocentricLatLonAlt{WGS84{1762}}, c2)
@test allapprox(c3, c1)

# ITRF2008 to ITRF2020
c1 = GeocentricLatLonAlt{ITRF{2008}}(T(30), T(40), T(1))
c2 = convert(GeocentricLatLonAlt{ITRF{2020}}, c1)
Expand All @@ -513,7 +513,7 @@
)
c3 = convert(GeocentricLatLonAlt{ITRF{2008}}, c2)
@test allapprox(c3, c1)

c1 = GeocentricLatLonAlt{ITRF{2008}}(T(35), T(45), T(1))
c2 = convert(GeocentricLatLonAlt{ITRF{2020}}, c1)
@test allapprox(
Expand All @@ -522,7 +522,7 @@
)
c3 = convert(GeocentricLatLonAlt{ITRF{2008}}, c2)
@test allapprox(c3, c1)

c1 = GeocentricLatLonAlt{WGS84{1762}}(T(30), T(40), T(1))
c2 = GeocentricLatLonAlt{ITRF{2008}}(T(30), T(40), T(1))
@inferred convert(GeocentricLatLonAlt{ITRF{2008}}, c1)
Expand Down

0 comments on commit a2bbbc0

Please sign in to comment.