@ -77,7 +77,6 @@ public class FunctionKit {
return new NameAndDescription[0];
}
/**
* 得到函数管理器实例
* @return 函数管理器
@ -28,8 +28,11 @@ public class RenderKitTest extends Prepare {
@Test
public void render() throws Exception{
Calculator c = Calculator.createCalculator();
String s = "abc${p1}xyz${p2}";
Assert.assertEquals("abc1xyz2", RenderKit.render(s,c));
Map<String, Object> map = new HashMap<>();
map.put("p1",1);
map.put("p2",2);
Assert.assertEquals("abcxyz", RenderKit.render(s,c));