From c96af1d3a222c6e7d5ced8712bd559c768a230f6 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Mon, 29 Oct 2018 01:06:11 +0100 Subject: [PATCH] Fix FString unit test --- test/fstring-test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fstring-test.cpp b/test/fstring-test.cpp index 11e46b01..a61f5ee4 100644 --- a/test/fstring-test.cpp +++ b/test/fstring-test.cpp @@ -178,12 +178,12 @@ void FStringTest::noArgumentTest() CPPUNIT_ASSERT ( wcstr == 0 ); std::string str = empty.toString(); CPPUNIT_ASSERT ( str.length() == 0 ); - CPPUNIT_ASSERT ( str.capacity() == 15 ); CPPUNIT_ASSERT ( str.size() == 0 ); CPPUNIT_ASSERT ( str.empty() ); const finalcut::FString fstr = str; CPPUNIT_ASSERT ( fstr.isNull() ); CPPUNIT_ASSERT ( fstr.isEmpty() ); + CPPUNIT_ASSERT ( fstr.capacity() == 0 ); cstr = 0; CPPUNIT_ASSERT ( empty == cstr );