2010-06-21 Rodrigo Kumpera <rkumpera@novell.com>
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 21 Jun 2010 20:36:17 +0000 (20:36 -0000)
committerRodrigo Kumpera <kumpera@gmail.com>
Mon, 21 Jun 2010 20:36:17 +0000 (20:36 -0000)
* RegexBugs.cs: Regression test for #610587.

svn path=/trunk/mcs/; revision=159293

mcs/class/System/Test/System.Text.RegularExpressions/ChangeLog
mcs/class/System/Test/System.Text.RegularExpressions/RegexBugs.cs

index 9e9a88d10fadb86a321cbf85290b864830da2222..c2094ee40c6f2862d86683a46a6199cd02912e0f 100644 (file)
@@ -1,3 +1,7 @@
+2010-06-21  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * RegexBugs.cs: Regression test for #610587.
+
 2010-02-03  Rodrigo Kumpera  <rkumpera@novell.com>
 
        * SplitTests.cs: New tests for #566117.
index 6819fc6cd58cc6428b138572e87777485f48c008..a6b0119db5830e8ded56916dcc0d40e7db2d2f84 100644 (file)
@@ -498,6 +498,13 @@ namespace MonoTests.System.Text.RegularExpressions
                        new Regex ("^(else|elif|except|finally)([^a-zA-Z_0-9]).*", RegexOptions.Compiled);
                }
 
+
+               [Test]
+               public void Bug610587_RepetitionOfPositionAssertion ()
+               {
+                       Assert.AreEqual ("888", Regex.Match("888", "^*8.*").Value);
+               }
+
                void Kill65535_1 (int length)
                {
                        StringBuilder sb = new StringBuilder ("x");
@@ -541,6 +548,7 @@ namespace MonoTests.System.Text.RegularExpressions
                        Assert.AreEqual ((n * (n - 1)) / 2, sum, "#3:" + r);
                }
 
+
                static string bug80554_s = @"(?(static)|(.*))(static)";
                static RegexTrial[] bug80554_trials = {
                        new RegexTrial (bug80554_s, RegexOptions.None, "static", "Pass. Group[0]=(0,6) Group[1]= Group[2]=(0,6)"),