Skip to content

Commit 4e98113

Browse files
committed
修改
1 parent 04de7d0 commit 4e98113

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

csharp/ToolGood.Algorithm2.Test/AlgorithmEngine/AlgorithmEngineTest.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,16 @@ public void Cylinder_Test()
155155

156156
t = c.TryEvaluate("求面积(10)", 0.0); //圆的体积
157157
Assert.AreEqual(10 * 10 * Math.PI, t);
158-
158+
159+
160+
161+
var json = "{'灰色':'L','canBookCount':905,'saleCount':91,'specId':'43b0e72e98731aed69e1f0cc7d64bf4d'}";
162+
c.AddParameterFromJson(json);
163+
164+
165+
var tt = c.TryEvaluate("['灰色']", ""); //圆的体积
166+
Assert.AreEqual("L", tt);
167+
159168
}
160169

161170
}

0 commit comments

Comments
 (0)