Commit c5d42503 authored by Marco Bubke's avatar Marco Bubke Committed by Tim Jenssen

Utils: Add test that a longer path string is a short string

Change-Id: Ie4cf6ae5e2ac9fac878b3f85e88b1e64960a156d
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 2ae98947
......@@ -205,6 +205,15 @@ TEST(SmallString, CopyLongConstExpressionSmallStringIsLongSmallString)
ASSERT_FALSE(longTextCopy.isShortString());
}
TEST(SmallString, ShortPathStringIsShortString)
{
const char *rawText = "very very very very very very very very very very very long path which fits in the short memory";
PathString text(rawText);
ASSERT_TRUE(text.isShortString());
}
TEST(SmallString, SmallStringFromCharacterArrayIsReference)
{
const char longCString[] = "very very very very very very very very very very very long string";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment