Kaydet (Commit) 9fcd47b5 authored tarafından Caolán McNamara's avatar Caolán McNamara

fix tests that aren't testing anything

Change-Id: I62c5f9206b6bc0321b7ee2b9c679ab7b5400a8ef
üst 0cf62745
...@@ -1943,25 +1943,6 @@ namespace rtl_OStringBuffer ...@@ -1943,25 +1943,6 @@ namespace rtl_OStringBuffer
} }
#ifdef WITH_CORE
void append_001_021()
{
OString expVal;
::rtl::OStringBuffer aStrBuf( kSInt32Max );
OString input2;
aStrBuf.append( input2 );
CPPUNIT_ASSERT_MESSAGE
(
"Appends the string(length equal to 0) to the string buffer arrOUS[4]",
aStrBuf.getStr()== expVal &&
aStrBuf.getLength() == expVal.getLength()
);
}
#endif
CPPUNIT_TEST_SUITE( append_001 ); CPPUNIT_TEST_SUITE( append_001 );
CPPUNIT_TEST( append_001_001 ); CPPUNIT_TEST( append_001_001 );
CPPUNIT_TEST( append_001_002 ); CPPUNIT_TEST( append_001_002 );
...@@ -1984,9 +1965,6 @@ namespace rtl_OStringBuffer ...@@ -1984,9 +1965,6 @@ namespace rtl_OStringBuffer
CPPUNIT_TEST( append_001_019 ); CPPUNIT_TEST( append_001_019 );
CPPUNIT_TEST( append_001_020 ); CPPUNIT_TEST( append_001_020 );
CPPUNIT_TEST( append_null ); CPPUNIT_TEST( append_null );
#ifdef WITH_CORE
CPPUNIT_TEST( append_001_021 );
#endif
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; };
...@@ -8183,7 +8161,6 @@ namespace rtl_OStringBuffer ...@@ -8183,7 +8161,6 @@ namespace rtl_OStringBuffer
aStrBuf.getStr()== expVal && aStrBuf.getStr()== expVal &&
aStrBuf.getLength() == expVal.getLength() aStrBuf.getLength() == expVal.getLength()
); );
} }
void append_099() void append_099()
...@@ -8203,7 +8180,6 @@ namespace rtl_OStringBuffer ...@@ -8203,7 +8180,6 @@ namespace rtl_OStringBuffer
aStrBuf.getStr()== expVal && aStrBuf.getStr()== expVal &&
aStrBuf.getLength() == expVal.getLength() aStrBuf.getLength() == expVal.getLength()
); );
} }
void append_100() void append_100()
...@@ -8223,7 +8199,6 @@ namespace rtl_OStringBuffer ...@@ -8223,7 +8199,6 @@ namespace rtl_OStringBuffer
aStrBuf.getStr()== expVal && aStrBuf.getStr()== expVal &&
aStrBuf.getLength() == expVal.getLength() aStrBuf.getLength() == expVal.getLength()
); );
} }
CPPUNIT_TEST_SUITE( append_006_Int32_Negative ); CPPUNIT_TEST_SUITE( append_006_Int32_Negative );
...@@ -8315,9 +8290,9 @@ namespace rtl_OStringBuffer ...@@ -8315,9 +8290,9 @@ namespace rtl_OStringBuffer
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer arrOUS[0]", "Appends the WrongRadix to the string buffer arrOUS[0]",
sal_True aStrBuf.getStr()== expVal &&
aStrBuf.getLength() == expVal.getLength()
); );
} }
void append_002() void append_002()
...@@ -8330,9 +8305,9 @@ namespace rtl_OStringBuffer ...@@ -8330,9 +8305,9 @@ namespace rtl_OStringBuffer
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer arrOUS[1]", "Appends the WrongRadix to the string buffer arrOUS[1]",
sal_True aStrBuf.getStr()== expVal &&
aStrBuf.getLength() == expVal.getLength()
); );
} }
void append_003() void append_003()
...@@ -8345,7 +8320,8 @@ namespace rtl_OStringBuffer ...@@ -8345,7 +8320,8 @@ namespace rtl_OStringBuffer
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer arrOUS[2]", "Appends the WrongRadix to the string buffer arrOUS[2]",
sal_True aStrBuf.getStr()== expVal &&
aStrBuf.getLength() == expVal.getLength()
); );
} }
...@@ -8360,7 +8336,8 @@ namespace rtl_OStringBuffer ...@@ -8360,7 +8336,8 @@ namespace rtl_OStringBuffer
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer arrOUS[3]", "Appends the WrongRadix to the string buffer arrOUS[3]",
sal_True aStrBuf.getStr()== expVal &&
aStrBuf.getLength() == expVal.getLength()
); );
} }
...@@ -8375,9 +8352,9 @@ namespace rtl_OStringBuffer ...@@ -8375,9 +8352,9 @@ namespace rtl_OStringBuffer
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer arrOUS[4]", "Appends the WrongRadix to the string buffer arrOUS[4]",
sal_True (aStrBuf.toString() == expVal &&
aStrBuf.getLength() == expVal.getLength())
); );
} }
#ifdef WITH_CORE #ifdef WITH_CORE
void append_006() void append_006()
...@@ -8390,7 +8367,8 @@ namespace rtl_OStringBuffer ...@@ -8390,7 +8367,8 @@ namespace rtl_OStringBuffer
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer(with INT_MAX)", "Appends the WrongRadix to the string buffer(with INT_MAX)",
sal_True aStrBuf.getStr()== expVal &&
aStrBuf.getLength() == expVal.getLength()
); );
} }
...@@ -14061,12 +14039,13 @@ namespace rtl_OStringBuffer ...@@ -14061,12 +14039,13 @@ namespace rtl_OStringBuffer
aStrBuf.append( intVal, -5 ); aStrBuf.append( intVal, -5 );
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer arrOUS[0]", "Appends the WrongRadix to the string buffer arrOUS[0]",
sal_True (aStrBuf.toString() == expVal &&
aStrBuf.getLength() == expVal.getLength())
); );
} }
void append_002() void append_002()
...@@ -14079,9 +14058,9 @@ namespace rtl_OStringBuffer ...@@ -14079,9 +14058,9 @@ namespace rtl_OStringBuffer
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer arrOUS[1]", "Appends the WrongRadix to the string buffer arrOUS[1]",
sal_True (aStrBuf.toString() == expVal &&
aStrBuf.getLength() == expVal.getLength())
); );
} }
void append_003() void append_003()
...@@ -14094,9 +14073,9 @@ namespace rtl_OStringBuffer ...@@ -14094,9 +14073,9 @@ namespace rtl_OStringBuffer
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer arrOUS[2]", "Appends the WrongRadix to the string buffer arrOUS[2]",
sal_True (aStrBuf.toString() == expVal &&
aStrBuf.getLength() == expVal.getLength())
); );
} }
void append_004() void append_004()
...@@ -14109,9 +14088,9 @@ namespace rtl_OStringBuffer ...@@ -14109,9 +14088,9 @@ namespace rtl_OStringBuffer
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer arrOUS[3]", "Appends the WrongRadix to the string buffer arrOUS[3]",
sal_True (aStrBuf.toString() == expVal &&
aStrBuf.getLength() == expVal.getLength())
); );
} }
void append_005() void append_005()
...@@ -14124,9 +14103,9 @@ namespace rtl_OStringBuffer ...@@ -14124,9 +14103,9 @@ namespace rtl_OStringBuffer
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer arrOUS[4]", "Appends the WrongRadix to the string buffer arrOUS[4]",
sal_True (aStrBuf.toString() == expVal &&
aStrBuf.getLength() == expVal.getLength())
); );
} }
#ifdef WITH_CORE #ifdef WITH_CORE
void append_006() void append_006()
...@@ -14139,9 +14118,9 @@ namespace rtl_OStringBuffer ...@@ -14139,9 +14118,9 @@ namespace rtl_OStringBuffer
CPPUNIT_ASSERT_MESSAGE CPPUNIT_ASSERT_MESSAGE
( (
"Appends the WrongRadix to the string buffer(with INT_MAX)", "Appends the WrongRadix to the string buffer(with INT_MAX)",
sal_True (aStrBuf.toString() == expVal &&
aStrBuf.getLength() == expVal.getLength())
); );
} }
#endif #endif
......
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