Browse Source
Merge in DESIGN/design from ~HADES/design:release/10.0 to release/10.0 * commit '6b5301b490c10a8963311e5ce3dda72fade67770': REPORT-31834 && REPORT-31874feature/big-screen
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