From add7ff74ca25ca2c9cc591abc484f8e6d38b2c39 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 11 Aug 2014 22:52:18 -0700 Subject: Optimize string literals in refcounted strings --- src/strings/strings2_test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/strings/strings2_test.cpp') diff --git a/src/strings/strings2_test.cpp b/src/strings/strings2_test.cpp index 18c7db4..8ac8482 100644 --- a/src/strings/strings2_test.cpp +++ b/src/strings/strings2_test.cpp @@ -170,9 +170,11 @@ TEST(StringTests, rempty) TEST(StringTests, rshort) { LString short_text = "0123456789"_s; - RString r = short_text; + EXPECT_EQ(&*short_text.begin(), &*RString(short_text).begin()); + EXPECT_EQ(&*short_text.begin(), &*AString(short_text).begin()); + RString r = VString<255>(short_text); EXPECT_EQ(r.size(), 10); - AString a = short_text; + AString a = VString<255>(short_text); EXPECT_EQ(r, a); AString r2 = r, r3; RString a2 = a, a3; -- cgit v1.2.3-60-g2f50