From f6e44d89fd9be293e00dc21095480af28294a7d6 Mon Sep 17 00:00:00 2001 From: mo-jonasganderton Date: Wed, 12 Feb 2025 16:55:16 +0000 Subject: [PATCH] Remove duplicate test --- src/tests/grid/test_cubedsphere_2.cc | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/tests/grid/test_cubedsphere_2.cc b/src/tests/grid/test_cubedsphere_2.cc index 5e2d0b845..0939aa310 100644 --- a/src/tests/grid/test_cubedsphere_2.cc +++ b/src/tests/grid/test_cubedsphere_2.cc @@ -35,9 +35,10 @@ bool compare_2D_points(std::vector a, std::vector b, boo CASE("cubed_sphere_instantiation") { const int n = 2; - const Grid grid = CubedSphereGrid2(n); - - EXPECT(grid.name() == "CS-LFR-" + std::to_string(n) + "-2"); + const std::string name = "CS-LFR-" + std::to_string(n) + "-2"; + + const Grid grid = Grid(name); + EXPECT(grid.name() == name); EXPECT(grid.type() == "cubedsphere2"); EXPECT(grid.size() == n * n * 6); } @@ -73,15 +74,6 @@ CASE("cubed_sphere_grid_kgo") { EXPECT(compare_2D_points(points_xy, kgo_lonlat)); } -CASE("cubed_sphere_grid_builder") { - const int n = 2; - const std::string name = "CS-LFR-" + std::to_string(n) + "-2"; - const Grid grid = Grid(name); - EXPECT(grid.name() == name); - EXPECT(grid.type() == "cubedsphere2"); - EXPECT(grid.size() == n * n * 6); -} - CASE("cubed_sphere_rotated_lonlat") { const auto grid_rotated = CubedSphereGrid2(2, Projection(util::Config("type", "rotated_lonlat")("north_pole", std::vector{4., 54.})));