|
|
|
@ -22,4 +22,12 @@ public class FormulaPaneTest extends TestCase {
|
|
|
|
|
Assert.assertArrayEquals(result, strs); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void test4SimilarComparator() { |
|
|
|
|
String[] strs = new String[]{"TESTB", "TESTACD", "Ftest", "Gtest", "TEST"}; |
|
|
|
|
String[] result = new String[]{"TEST", "TESTACD", "TESTB", "Ftest", "Gtest"}; |
|
|
|
|
Arrays.sort(strs, new FormulaPane.SimilarComparator("test")); |
|
|
|
|
Assert.assertArrayEquals(result, strs); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |