summaryrefslogtreecommitdiff
path: root/src/strings/strings_test.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-10-04 21:03:31 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-10-05 13:42:46 -0700
commit70214054e84b920ca3bea5119bd5d1456c809054 (patch)
tree0a9383d460c8988f788f4ef7adcd567526b35a75 /src/strings/strings_test.cpp
parentcaae1e38d0d239f4f7088a64526fe1d2f6587999 (diff)
downloadtmwa-70214054e84b920ca3bea5119bd5d1456c809054.tar.gz
tmwa-70214054e84b920ca3bea5119bd5d1456c809054.tar.bz2
tmwa-70214054e84b920ca3bea5119bd5d1456c809054.tar.xz
tmwa-70214054e84b920ca3bea5119bd5d1456c809054.zip
Remove owning slices
They were hardly ever used, hid errors, and were obsoleted by baseful x'es.
Diffstat (limited to 'src/strings/strings_test.cpp')
-rw-r--r--src/strings/strings_test.cpp17
1 files changed, 1 insertions, 16 deletions
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<TypeParam, ZString>::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>