Skip to content

Commit d3078c4

Browse files
author
leaf_ying
committed
Fix new instance keyword regex & add some tests for variable with prefix 'new'
1 parent f4e9161 commit d3078c4

File tree

7 files changed

+247
-159
lines changed

7 files changed

+247
-159
lines changed

CodingSeb.ExpressionEvaluator.Tests/ExpressionEvaluatorScriptEvaluateTests.cs

+23
Original file line numberDiff line numberDiff line change
@@ -1507,6 +1507,29 @@ public static IEnumerable<TestCaseData> TestCasesForScriptEvaluateTests
15071507
.SetCategory("new Exception must not throw the exception")
15081508
.Returns(3);
15091509

1510+
yield return new TestCaseData(Resources.Script0072, null, null, null, null)
1511+
.SetCategory("Script")
1512+
.SetCategory("variable with prefix 'test'")
1513+
.SetCategory("new function test")
1514+
.SetCategory("Bug")
1515+
.SetCategory("#116")
1516+
.Returns("hello");
1517+
1518+
yield return new TestCaseData(Resources.Script0073, null, null, null, null)
1519+
.SetCategory("Script")
1520+
.SetCategory("variable with prefix 'test'")
1521+
.SetCategory("new instance test")
1522+
.SetCategory("Bug")
1523+
.SetCategory("#116")
1524+
.Returns("hello");
1525+
1526+
yield return new TestCaseData(Resources.Script0074, null, null, null, null)
1527+
.SetCategory("Script")
1528+
.SetCategory("variable with prefix 'test'")
1529+
.SetCategory("Bug")
1530+
.SetCategory("#116")
1531+
.Returns("hello");
1532+
15101533
#endregion
15111534
}
15121535
}

0 commit comments

Comments
 (0)