From d3ab33eb6f59f21260717da960e329e4b9271110 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Fri, 16 Aug 2013 13:06:43 +0200 Subject: [PATCH] Added test for Grid using only negative coordinates in y direction. --- Tests/GeoLib/TestGrid.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tests/GeoLib/TestGrid.cpp b/Tests/GeoLib/TestGrid.cpp index 5db3f31f83b..06c46061da1 100644 --- a/Tests/GeoLib/TestGrid.cpp +++ b/Tests/GeoLib/TestGrid.cpp @@ -32,6 +32,15 @@ TEST(GeoLib, InsertOnePointInGrid) ASSERT_NO_THROW(GeoLib::Grid<GeoLib::Point> grid(pnts.begin(), pnts.end())); } +TEST(GeoLib, InsertTwoPointsInGrid) +{ + std::vector<GeoLib::Point*> pnts; + pnts.push_back(new GeoLib::Point(4.5, -400.0, 0.0)); + pnts.push_back(new GeoLib::Point(50, -300.0, 0.0)); + ASSERT_NO_THROW(GeoLib::Grid<GeoLib::Point> grid(pnts.begin(), pnts.end())); +} + + TEST(GeoLib, InsertManyPointsInGrid) { const std::size_t i_max(100), j_max(100), k_max(100); -- GitLab