From 70214054e84b920ca3bea5119bd5d1456c809054 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 4 Oct 2013 21:03:31 -0700 Subject: Remove owning slices They were hardly ever used, hid errors, and were obsoleted by baseful x'es. --- src/strings/strings_test.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/strings/strings_test.cpp') diff --git a/src/strings/strings_test.cpp b/src/strings/strings_test.cpp index b7a7d39..82d39d8 100644 --- a/src/strings/strings_test.cpp +++ b/src/strings/strings_test.cpp @@ -163,21 +163,6 @@ TYPED_TEST_P(StringTest, xslice) EXPECT_TRUE(hi.endswith("World!")); } -TYPED_TEST_P(StringTest, oslice) -{ - TypeParam hi("Hello, World!"); - EXPECT_EQ(" World!", hi.oslice_t(6)); - EXPECT_EQ("Hello,", hi.oslice_h(6)); - EXPECT_EQ("World!", hi.orslice_t(6)); - EXPECT_EQ("Hello, ", hi.orslice_h(6)); - typename TypeParam::iterator it = std::find(hi.begin(), hi.end(), ' '); - EXPECT_EQ(" World!", hi.oislice_t(it)); - EXPECT_EQ("Hello,", hi.oislice_h(it)); - EXPECT_EQ("World", hi.olslice(7, 5)); - EXPECT_EQ("World", hi.opslice(7, 12)); - EXPECT_EQ("World", hi.oislice(hi.begin() + 7, hi.begin() + 12)); -} - TYPED_TEST_P(StringTest, convert) { constexpr bool is_zstring = std::is_same::value; @@ -249,7 +234,7 @@ TYPED_TEST_P(StringTest, convert) } REGISTER_TYPED_TEST_CASE_P(StringTest, - basic, order, iterators, xslice, oslice, convert); + basic, order, iterators, xslice, convert); typedef ::testing::Types< FString, TString, SString, ZString, XString, VString<255> -- cgit v1.2.3-70-g09d2