diff options
Diffstat (limited to 'mcs/class/System/Test/System.Text.RegularExpressions/RegexBugs.cs')
-rw-r--r-- | mcs/class/System/Test/System.Text.RegularExpressions/RegexBugs.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mcs/class/System/Test/System.Text.RegularExpressions/RegexBugs.cs b/mcs/class/System/Test/System.Text.RegularExpressions/RegexBugs.cs index acd73dae1f1..26c8f2baf47 100644 --- a/mcs/class/System/Test/System.Text.RegularExpressions/RegexBugs.cs +++ b/mcs/class/System/Test/System.Text.RegularExpressions/RegexBugs.cs @@ -211,6 +211,15 @@ namespace MonoTests.System.Text.RegularExpressions text = re.Replace(text, " "); AssertEquals("#01", "Go, \bNo Go", text); } + + [Test] + public void ReplaceNegOneAndStartat () + { + string text = "abcdeeee"; + Regex re = new Regex("e+"); + text = re.Replace(text, "e", -1, 4); + AssertEquals("#01", "abcde", text); + } } } |