Commit 1232523f authored by yanzg's avatar yanzg

修改实体位置

parent bb98b00e
...@@ -44,6 +44,21 @@ public class TestCalcHelper { ...@@ -44,6 +44,21 @@ public class TestCalcHelper {
})); }));
} }
@Test
public void test3() {
System.out.println(CalcHelper.calc("a * 0.006", new CalcHelper.CalcParameter() {
@Override
public double getValue(String parameterName) {
switch (parameterName){
case "a":
return 1500;
default:
return 0;
}
}
}));
}
@Test @Test
public void test2() { public void test2() {
System.out.println(CalcHelper.getExcelIndex("aa")); System.out.println(CalcHelper.getExcelIndex("aa"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment