refine tests

This commit is contained in:
XenoAmess 2020-06-01 17:35:50 +08:00 committed by Rob Tompkins
parent bbc2e7ee85
commit d02958ca09
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ private void testNewLastIndexOfSingle(CharSequence a, CharSequence b, int start)
private void testNewLastIndexOfSingleSingle(CharSequence a, CharSequence b, int start) {
assertEquals(
a.toString().lastIndexOf(b.toString(), start),
CharSequenceUtils.lastIndexOf(new WrapperString(a.toString()), b.toString(), start),
CharSequenceUtils.lastIndexOf(new WrapperString(a.toString()), new WrapperString(b.toString()), start),
"testNewLastIndexOf fails! original : " + a + " seg : " + b + " start : " + start
);
}