Skip to content

Commit

Permalink
Remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-jonasganderton committed Feb 12, 2025
1 parent 3cf38e4 commit 3c2da9c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/tests/grid/test_cubedsphere_2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ bool compare_2D_points(std::vector<point2_derived> a, std::vector<Point2> 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);
}
Expand Down Expand Up @@ -73,15 +74,6 @@ CASE("cubed_sphere_grid_kgo") {
EXPECT(compare_2D_points<PointXY>(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<double>{4., 54.})));

Expand Down

0 comments on commit 3c2da9c

Please sign in to comment.