Skip to content

Commit

Permalink
test_erase: Delete a broken part of the test
Browse files Browse the repository at this point in the history
The std::string interface says that the erase overload that takes
iterators doesn't throw.

Signed-off-by: Rafael Ávila de Espíndola <espindola@scylladb.com>
  • Loading branch information
espindola committed Mar 9, 2020
1 parent 5c2dee9 commit 25208ca
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/unit/sstring_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ BOOST_AUTO_TEST_CASE(test_erase) {
auto i = str.erase(str.begin() + 1, str.begin() + 3);
BOOST_REQUIRE_EQUAL(*i, 'd');
BOOST_REQUIRE_EQUAL(str, "adef");
BOOST_REQUIRE_THROW(str.erase(str.begin() + 5, str.begin() + 6), std::out_of_range);
}

BOOST_AUTO_TEST_CASE(test_ctor_iterator) {
Expand Down

0 comments on commit 25208ca

Please sign in to comment.