Applied Javadoc patch and added new test per

https://github.com/apache/commons-lang/pull/115
This commit is contained in:
ggregory 2016-04-13 14:13:24 -07:00
parent ff902c1561
commit 833885c29d
2 changed files with 2 additions and 1 deletions

View File

@ -1342,7 +1342,7 @@ public class StringUtils {
* StringUtils.indexOfIgnoreCase("aabaabaa", "B", 9) = -1
* StringUtils.indexOfIgnoreCase("aabaabaa", "B", -1) = 2
* StringUtils.indexOfIgnoreCase("aabaabaa", "", 2) = 2
* StringUtils.indexOfIgnoreCase("abc", "", 9) = 3
* StringUtils.indexOfIgnoreCase("abc", "", 9) = -1
* </pre>
*
* @param str the CharSequence to check, may be null

View File

@ -930,6 +930,7 @@ public class StringUtilsEqualsIndexOfTest {
assertEquals(5, StringUtils.indexOfIgnoreCase("aabaabaa", "", 5));
assertEquals(-1, StringUtils.indexOfIgnoreCase("ab", "AAB", 0));
assertEquals(-1, StringUtils.indexOfIgnoreCase("aab", "AAB", 1));
assertEquals(-1, StringUtils.indexOfIgnoreCase("abc", "", 9));
}
@Test