So my test was wrong. I was using the split method wrongly.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137159 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2002-11-23 00:51:34 +00:00
parent 9d3dc97c25
commit de74831603
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @author <a href="mailto:ridesmet@users.sourceforge.net">Ringo De Smet</a>
* @author <a href="mailto:fredrik@westermarck.com>Fredrik Westermarck</a>
* @version $Id: StringUtilsTest.java,v 1.9 2002/11/23 00:41:19 bayard Exp $
* @version $Id: StringUtilsTest.java,v 1.10 2002/11/23 00:51:34 bayard Exp $
*/
public class StringUtilsTest extends TestCase
{
@ -187,7 +187,7 @@ public void testSplit()
result[i]);
}
result = StringUtils.split("one two three four five six", null, 2);
result = StringUtils.split("one two three four five six", null, 3);
assertEquals("split(Object[], null, int)[0] failed", "one", result[0]);
assertEquals("split(Object[], null, int)[1] failed", "two", result[1]);
assertEquals("split(Object[], null, int)[2] failed", "three four five six", result[2]);