mirror of
https://github.com/taglib/taglib.git
synced 2025-11-07 10:14:45 -05:00
Messed with things until the algorithm is correct. rfind now passes all unit tests.
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@773913 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -139,7 +139,7 @@ public:
|
||||
|
||||
void testRfind1()
|
||||
{
|
||||
CPPUNIT_ASSERT_EQUAL(-1, ByteVector(".OggS....").rfind("OggS", 0));
|
||||
CPPUNIT_ASSERT_EQUAL(1, ByteVector(".OggS....").rfind("OggS", 0));
|
||||
CPPUNIT_ASSERT_EQUAL(1, ByteVector(".OggS....").rfind("OggS", 1));
|
||||
CPPUNIT_ASSERT_EQUAL(1, ByteVector(".OggS....").rfind("OggS", 2));
|
||||
CPPUNIT_ASSERT_EQUAL(1, ByteVector(".OggS....").rfind("OggS", 3));
|
||||
@ -168,7 +168,7 @@ public:
|
||||
CPPUNIT_ASSERT_EQUAL(0, r3.find("OggS"));
|
||||
CPPUNIT_ASSERT_EQUAL(10, r3.rfind("OggS"));
|
||||
CPPUNIT_ASSERT_EQUAL(10, r4.rfind("OggS"));
|
||||
CPPUNIT_ASSERT_EQUAL(0, r4.rfind("OggS", 0));
|
||||
CPPUNIT_ASSERT_EQUAL(10, r4.rfind("OggS", 0));
|
||||
CPPUNIT_ASSERT_EQUAL(5, r4.rfind("OggS", 7));
|
||||
CPPUNIT_ASSERT_EQUAL(10, r4.rfind("OggS", 12));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user