|
|
@ -17,7 +17,7 @@ public class FormulaPaneTest extends TestCase { |
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void testSimilarComparator() { |
|
|
|
public void testSimilarComparator() { |
|
|
|
String[] strs = new String[]{"ScriptEval", "SPLIT", "SUMPRECISE"}; |
|
|
|
String[] strs = new String[]{"ScriptEval", "SPLIT", "SUMPRECISE"}; |
|
|
|
String[] result = new String[] {"SPLIT", "SUMPRECISE", "ScriptEval",}; |
|
|
|
String[] result = new String[]{"SPLIT", "SUMPRECISE", "ScriptEval"}; |
|
|
|
Arrays.sort(strs, new FormulaPane.SimilarComparator("sp")); |
|
|
|
Arrays.sort(strs, new FormulaPane.SimilarComparator("sp")); |
|
|
|
Assert.assertArrayEquals(result, strs); |
|
|
|
Assert.assertArrayEquals(result, strs); |
|
|
|
} |
|
|
|
} |
|
|
|