diff --git a/src/UnitTests/StringTest.cpp b/src/UnitTests/StringTest.cpp index 2f0c29220e5baace0efc10d3222dd4c048231145..ebf0c41d6dc8cd1f27321ac1468204e5dc28eff6 100644 --- a/src/UnitTests/StringTest.cpp +++ b/src/UnitTests/StringTest.cpp @@ -83,7 +83,7 @@ TEST( StringTest, SetSize ) { String str; str.setSize( 42 ); - EXPECT_EQ( str.getAllocatedSize(), 43 ); + EXPECT_EQ( str.getAllocatedSize(), 42 ); } TEST( StringTest, GetString ) @@ -277,7 +277,7 @@ TEST( StringTest, split ) EXPECT_EQ( parts[ 4 ], "br" ); EXPECT_EQ( parts[ 5 ], "" ); - parts = String( "abracadabra" ).split( 'a', true ); + parts = String( "abracadabra" ).split( 'a', String::SkipEmpty ); ASSERT_EQ( (int) parts.size(), 4 ); EXPECT_EQ( parts[ 0 ], "br" ); EXPECT_EQ( parts[ 1 ], "c" );