Skip to content

Commit 59a3734

Browse files
author
linzhijun
committed
修改 代码
1 parent 2d52676 commit 59a3734

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

csharp/ToolGood.Algorithm2.Test/AlgorithmEngineHelper/AlgorithmEngineHelperTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public void Test()
3030

3131
DiyNameInfo p3 = AlgorithmEngineHelper.GetDiyNames("【dd】");
3232
Assert.AreEqual("dd", p3.Parameters[0]);
33+
p3 = AlgorithmEngineHelper.GetDiyNames("【dd.1】");
34+
Assert.AreEqual("dd.1", p3.Parameters[0]);
3335

3436
DiyNameInfo p4 = AlgorithmEngineHelper.GetDiyNames("@ddd+2");
3537
Assert.AreEqual("ddd", p4.Parameters[0]);

csharp/ToolGood.Algorithm2/Internals/CharUtil.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public static char StandardChar(char o)
2222
if (o == '×') return '*';
2323
if (o == '÷') return '/';
2424
//if (o == '/') return '/';
25-
if (o == '【') return '[';
26-
if (o == '】') return ']';
25+
//if (o == '【') return '[';
26+
//if (o == '】') return ']';
2727
//if (o == '(') return '(';
2828
//if (o == ')') return ')';
2929
//if (o == ',') return ',';

java/toolgood.algorithm/src/test/java/toolgood/algorithm/Tests3/AlgorithmEngineHelperTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public void Test() throws Exception {
2828

2929
DiyNameInfo p3 = AlgorithmEngineHelper.GetDiyNames("【dd】");
3030
assertEquals("dd", p3.Parameters.get(0));
31+
p3 = AlgorithmEngineHelper.GetDiyNames("【dd.1】");
32+
assertEquals("dd.1", p3.Parameters.get(0));
3133

3234
DiyNameInfo p4 = AlgorithmEngineHelper.GetDiyNames("@ddd+2");
3335
assertEquals("ddd", p4.Parameters.get(0));

0 commit comments

Comments
 (0)