hades
5 years ago
4 changed files with 67 additions and 15 deletions
@ -0,0 +1,25 @@
|
||||
package com.fr.design.formula; |
||||
|
||||
import junit.framework.TestCase; |
||||
import org.junit.Assert; |
||||
import org.junit.Test; |
||||
|
||||
import java.util.Arrays; |
||||
|
||||
|
||||
/** |
||||
* @author hades |
||||
* @version 10.0 |
||||
* Created by hades on 2020/5/20 |
||||
*/ |
||||
public class FormulaPaneTest extends TestCase { |
||||
|
||||
@Test |
||||
public void testSimilarComparator() { |
||||
String[] strs = new String[] {"ScriptEval", "SPLIT", "SUMPRECISE"}; |
||||
String[] result = new String[] {"SPLIT", "ScriptEval", "SUMPRECISE"}; |
||||
Arrays.sort(strs, new FormulaPane.SimilarComparator("sp")); |
||||
Assert.assertArrayEquals(result, strs); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue