From 6cb16987e524cb05388d46b72f4de29c42efffe2 Mon Sep 17 00:00:00 2001 From: Palin Date: Wed, 11 Sep 2019 13:46:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/fanruan/api/function/FunctionKit.java | 1 - src/test/java/com/fanruan/api/util/RenderKitTest.java | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/fanruan/api/function/FunctionKit.java b/src/main/java/com/fanruan/api/function/FunctionKit.java index f9fccef..227cb25 100644 --- a/src/main/java/com/fanruan/api/function/FunctionKit.java +++ b/src/main/java/com/fanruan/api/function/FunctionKit.java @@ -77,7 +77,6 @@ public class FunctionKit { return new NameAndDescription[0]; } - /** * 得到函数管理器实例 * @return 函数管理器 diff --git a/src/test/java/com/fanruan/api/util/RenderKitTest.java b/src/test/java/com/fanruan/api/util/RenderKitTest.java index 6946f6a..a705166 100644 --- a/src/test/java/com/fanruan/api/util/RenderKitTest.java +++ b/src/test/java/com/fanruan/api/util/RenderKitTest.java @@ -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 map = new HashMap<>(); + map.put("p1",1); + map.put("p2",2); + String s = "abc${p1}xyz${p2}"; + Assert.assertEquals("abcxyz", RenderKit.render(s,c)); + } }