Skip to content

Commit

Permalink
Merge pull request #117 from guyleaf/FixNewInstanceKeywordIdentification
Browse files Browse the repository at this point in the history
Fix instance creation with new keyword regex detection bug mentioned in issue #116
  • Loading branch information
codingseb authored Sep 13, 2021
2 parents f4e9161 + d3078c4 commit d5932a7
Show file tree
Hide file tree
Showing 7 changed files with 247 additions and 159 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,29 @@ public static IEnumerable<TestCaseData> TestCasesForScriptEvaluateTests
.SetCategory("new Exception must not throw the exception")
.Returns(3);

yield return new TestCaseData(Resources.Script0072, null, null, null, null)
.SetCategory("Script")
.SetCategory("variable with prefix 'test'")
.SetCategory("new function test")
.SetCategory("Bug")
.SetCategory("#116")
.Returns("hello");

yield return new TestCaseData(Resources.Script0073, null, null, null, null)
.SetCategory("Script")
.SetCategory("variable with prefix 'test'")
.SetCategory("new instance test")
.SetCategory("Bug")
.SetCategory("#116")
.Returns("hello");

yield return new TestCaseData(Resources.Script0074, null, null, null, null)
.SetCategory("Script")
.SetCategory("variable with prefix 'test'")
.SetCategory("Bug")
.SetCategory("#116")
.Returns("hello");

#endregion
}
}
Expand Down
Loading

0 comments on commit d5932a7

Please sign in to comment.