mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test that longer strings sort behind shorter strings
This commit is contained in:
@@ -83,8 +83,8 @@ public class StringUtilTest extends TestCase {
|
||||
Collections.sort(strings, c);
|
||||
assertEquals(Arrays.asList("1.2.9.1", "1.2.10.5", "tes0", "test", "test 3", "test0", "test1", "test2", "test10", "test10a",
|
||||
"test011", "Test99", "test99", "testing"), strings);
|
||||
final List<String> strings2 = new ArrayList(Arrays.asList("t1", "T2", "T1", "t2"));
|
||||
final List<String> strings2 = new ArrayList(Arrays.asList("t1", "t001", "T2", "T002", "T1", "t2"));
|
||||
Collections.sort(strings2, c);
|
||||
assertEquals(Arrays.asList("T1", "t1", "T2", "t2"), strings2);
|
||||
assertEquals(Arrays.asList("T1", "t1", "t001", "T2", "t2", "T002"), strings2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user