Browse Source

* RegexReplace.cs: Add a couple more testcases.

svn path=/trunk/mcs/; revision=44993
Raja R Harinath 20 years ago
parent
commit
3f3a350f4d

+ 4 - 0
mcs/class/System/Test/System.Text.RegularExpressions/ChangeLog

@@ -1,3 +1,7 @@
+2005-05-25  Raja R Harinath  <[email protected]>
+
+	* RegexReplace.cs: Add a couple more testcases.
+
 2005-05-24  Raja R Harinath  <[email protected]>
 
 	* RegexReplace.cs: Add testcase for $+.

+ 3 - 0
mcs/class/System/Test/System.Text.RegularExpressions/RegexReplace.cs

@@ -63,6 +63,9 @@ namespace MonoTests.System.Text.RegularExpressions {
 			new testcase ("text",	"(?<foo>e)(x)", 	"${foo}$1$2",		"texet" 	),
 			new testcase ("text",	"(e)(?<foo>x)", 	"${foo}$1$2$+",		"txexxt" 	),
 			new testcase ("text",	"(?<foo>e)(x)", 	"${foo}$1$2$+",		"texeet" 	),
+			new testcase ("314 1592 65358",		@"\d\d\d\d|\d\d\d", "a",	"a a a8"	),
+			new testcase ("2 314 1592 65358", 	@"\d\d\d\d|\d\d\d", "a",	"2 a a a8"	),
+			new testcase ("<i>am not</i>", 		"<(.+?)>", 	"[$0:$1]",	"[<i>:i]am not[</i>:/i]"),
 		};
 
 		[Test]