From 23e88e5ee24dd8ae63b4fdec3c87508f9e3a10f3 Mon Sep 17 00:00:00 2001 From: shatty Date: Sat, 9 Aug 2003 04:30:43 +0000 Subject: [PATCH] expose buggy R5 behavior in a test so that we will not have the same bug (btw, we do not) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4246 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/support/bstring/StringSearchTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tests/kits/support/bstring/StringSearchTest.cpp b/src/tests/kits/support/bstring/StringSearchTest.cpp index 851fc30d4b..b53f30b87e 100644 --- a/src/tests/kits/support/bstring/StringSearchTest.cpp +++ b/src/tests/kits/support/bstring/StringSearchTest.cpp @@ -476,6 +476,12 @@ StringSearchTest::PerformTest(void) i = string1->IFindLast("abc", -10); CPPUNIT_ASSERT(i == B_ERROR); delete string1; + + NextSubTest(); + string1 = new BString("abc def ghi"); + i = string1->IFindLast("abc",4); + CPPUNIT_ASSERT(i == 0); + delete string1; }