forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
531 B
21 lines
531 B
6 years ago
|
package com.fanruan.api.base;
|
||
|
|
||
|
import com.fr.stable.ParameterProvider;
|
||
|
import org.junit.Test;
|
||
|
|
||
|
import static org.junit.Assert.*;
|
||
|
|
||
|
/**
|
||
|
* @author Kalven
|
||
|
* @version 10.0
|
||
|
* Created by Kalven on 2019/8/31
|
||
|
*/
|
||
|
public class ParameterHelperKitTest {
|
||
|
|
||
|
@Test
|
||
|
public void analyze4Parameters() {
|
||
|
ParameterProvider p[] = ParameterHelperKit.analyze4Parameters("var a1 = '${A1}';\n" +
|
||
|
"return \"A1的值\" + (a1 > 10 ? \"大于10\" : \"小于等于10\");",false);
|
||
|
assertEquals(p[0].getValue(),"");
|
||
|
}
|
||
|
}
|