Loading src/TNL/String.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ inline int String::getAllocatedSize() const inline void String::setSize( int size ) { TNL_ASSERT_GE( size, 0, "string size must be non-negative" ); this->reserve( size ); this->resize( size ); } inline const char* String::getString() const Loading src/UnitTests/StringTest.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,7 @@ TEST( StringTest, SetSize ) { String str; str.setSize( 42 ); EXPECT_EQ( str.getSize(), 42 ); EXPECT_EQ( str.getAllocatedSize(), 42 ); } Loading Loading
src/TNL/String.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ inline int String::getAllocatedSize() const inline void String::setSize( int size ) { TNL_ASSERT_GE( size, 0, "string size must be non-negative" ); this->reserve( size ); this->resize( size ); } inline const char* String::getString() const Loading
src/UnitTests/StringTest.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,7 @@ TEST( StringTest, SetSize ) { String str; str.setSize( 42 ); EXPECT_EQ( str.getSize(), 42 ); EXPECT_EQ( str.getAllocatedSize(), 42 ); } Loading