Skip to content

Commit

Permalink
debug common 11
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-urban committed Jul 2, 2024
1 parent 55bed48 commit 66c0035
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tests/vectorinterpolators/common.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@ TEST_CASE("VectorInterpolators: should throw expected exceptions", TESTTAG)
REQUIRE(interpolator->get_data_Y() != y);
interpolator->set_data_XY(x, y);

// // initialize test data (wrong order)
// std::vector<double> x_wrong_order_ = { -5, -10, 0, 6, 12 };
// initialize test data (wrong order)
std::vector<double> x_wrong_order_ = { -5, -10, 0, 6, 12 };

// // throw because x is not sorted
// REQUIRE_THROWS(interpolator->set_data_XY(x_wrong_order_, y));
// REQUIRE(interpolator->get_data_X() == x); // strong exception guarantee
// REQUIRE(interpolator->get_data_Y() == y); // strong exception guarantee
// throw because x is not sorted
REQUIRE_THROWS(interpolator->set_data_XY(x_wrong_order_, y));
REQUIRE(interpolator->get_data_X() == x); // strong exception guarantee
REQUIRE(interpolator->get_data_Y() == y); // strong exception guarantee

// // initialize test data (duplicates)
// std::vector<double> x_duplicates_ = { -5, -10, 0, 0, 6, 12 };
Expand Down

0 comments on commit 66c0035

Please sign in to comment.