Skip to content

Commit

Permalink
Removed verification of string_view::max_size() polyfill.
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed Mar 3, 2025
1 parent 096f890 commit abfbc61
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cetlvast/suites/unittest/test_pf17_string_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,13 @@ TYPED_TEST(TestStringView, ConstructFromStdString)

TYPED_TEST(TestStringView, SizeAndLength)
{
using char_type = typename TypeParam::char_type;
using basic_string_view = typename TypeParam::sv_type;

const auto test_str = TestFixture::toStr("Test string");

const basic_string_view sv{test_str};
EXPECT_THAT(sv.size(), 11u);
EXPECT_THAT(sv.length(), 11u);
EXPECT_THAT(sv.max_size(),
(basic_string_view::npos - sizeof(typename basic_string_view::size_type) - sizeof(void*)) /
sizeof(char_type) / 4);
}

TYPED_TEST(TestStringView, Empty)
Expand Down

0 comments on commit abfbc61

Please sign in to comment.