summaryrefslogtreecommitdiff
path: root/tests/unit/unittest/smallstring-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/unittest/smallstring-test.cpp')
-rw-r--r--tests/unit/unittest/smallstring-test.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/tests/unit/unittest/smallstring-test.cpp b/tests/unit/unittest/smallstring-test.cpp
index f64c608696..ee55d875a7 100644
--- a/tests/unit/unittest/smallstring-test.cpp
+++ b/tests/unit/unittest/smallstring-test.cpp
@@ -55,24 +55,17 @@ TEST(SmallString, NullSmallStringIsEqualToEmptySmallString)
TEST(SmallString, ShortSmallStringLiteralIsShortSmallString)
{
- constexpr SmallStringLiteral shortText("short string");
+ // constexpr
+ SmallStringLiteral shortText("short string");
-#if __cpp_constexpr >= 201304
ASSERT_TRUE(shortText.isShortString());
-#else
- ASSERT_TRUE(shortText.isReadOnlyReference());
-#endif
}
TEST(SmallString, ShortSmallStringIsShortSmallString)
{
SmallString shortText("short string");
-#if __cpp_constexpr >= 201304
ASSERT_TRUE(shortText.isShortString());
-#else
- ASSERT_TRUE(shortText.isReadOnlyReference());
-#endif
}
TEST(SmallString, CreateFromCStringIterators)
@@ -189,11 +182,7 @@ TEST(SmallString, CopyShortConstExpressionSmallStringIsShortSmallString)
auto shortTextCopy = shortText;
-#if __cpp_constexpr >= 201304
ASSERT_TRUE(shortTextCopy.isShortString());
-#else
- ASSERT_TRUE(shortTextCopy.isReadOnlyReference());
-#endif
}
TEST(SmallString, CopyLongConstExpressionSmallStringIsLongSmallString)