From 178601288ea9b5e530715b6ceca9be51adc8e63a Mon Sep 17 00:00:00 2001 From: Pedro Maciel Date: Tue, 16 May 2023 10:14:08 +0100 Subject: [PATCH] Added additional argument "bool normalise_angle = false" where appropriate (API change, to preserve operational behaviour), ./format-sources.sh, cleanup --- tests/geometry/test_sphere.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/geometry/test_sphere.cc b/tests/geometry/test_sphere.cc index 8a194e3bf..4e761f8a8 100644 --- a/tests/geometry/test_sphere.cc +++ b/tests/geometry/test_sphere.cc @@ -232,20 +232,6 @@ CASE("test unit sphere lat 290") { EXPECT(eckit::types::is_approximately_equal(p.z(), q.z())); } -CASE("test unit sphere lat 290") { - const PointLonLat ll1(15., 290.); - const PointLonLat ll2(15., -70.); - PointXYZ p, q; - - UnitSphere::convertSphericalToCartesian(ll1, p); - UnitSphere::convertSphericalToCartesian(ll2, q); - - // sin(x) and sin(pi-x) are not bitwise identical - EXPECT(eckit::types::is_approximately_equal(p.x(), q.x())); - EXPECT(eckit::types::is_approximately_equal(p.y(), q.y())); - EXPECT(eckit::types::is_approximately_equal(p.z(), q.z())); -} - CASE("test unit sphere lat -120") { const PointLonLat ll1(45., -120.); const PointLonLat ll2(225., -60.);