Skip to content

Commit

Permalink
debug common 12
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-urban committed Jul 2, 2024
1 parent 66c0035 commit f557a80
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 @@ -236,13 +236,13 @@ TEST_CASE("VectorInterpolators: should throw expected exceptions", TESTTAG)
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 };
// initialize test data (duplicates)
std::vector<double> x_duplicates_ = { -5, -10, 0, 0, 6, 12 };

// // interpolator should fail if there is a double x element!
// REQUIRE_THROWS(interpolator->set_data_XY(x_duplicates_, y));
// REQUIRE(interpolator->get_data_X() == x); // strong exception guarantee
// REQUIRE(interpolator->get_data_Y() == y); // strong exception guarantee
// interpolator should fail if there is a double x element!
REQUIRE_THROWS(interpolator->set_data_XY(x_duplicates_, y));
REQUIRE(interpolator->get_data_X() == x); // strong exception guarantee
REQUIRE(interpolator->get_data_Y() == y); // strong exception guarantee
}

// // initialize test data (wrong order)
Expand Down

0 comments on commit f557a80

Please sign in to comment.