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