23 Commits
Author SHA1 Message Date
Alexander Köplinger 9606a8f180 [bcl] Remove usages of mono-project.com/go-mono.com/google.com in tests (#14586)
Use example.com and example.org instead.

Fixes https://github.com/mono/mono/issues/14585

Note that not all of the things I replaced make an actual network request but I thought it'd be nice to be consistent.
2019-05-23 14:12:14 +02:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Miguel de Icaza 74d0eeaf13 [System] Bring .NET implementation of System.Text.RegularExpressions
This patch brings .NET's implementation of the RegularExpressions
stack and brings some of the supporting infrastructure required to
build without resource files.

The build commands have been updated with two new defines to assist in
bringing .NET code: MONO (to indicate that the code is being compiled
as part of Mono) and a more granular DISABLE_CAS_USE that is used to
mark regions where Code Access Security is being used in the source
code, as Mono does not actually ship with a working CAS implementation.
2014-11-23 21:38:36 -05:00
Dave Dunkin cd364b4374 Add test for Regex RTL substring matching. 2014-08-05 08:51:38 -07:00
Dave Dunkin 509863e570 Add test for Regex.Match with anchors on a substring. 2014-08-04 14:42:34 -07:00
Raja R Harinath 1dc4bea327 Revert "processed with astyle" (SVN r159583)
svn path=/trunk/mcs/; revision=159587
2010-06-28 06:39:43 +00:00
C.J. Adams-Collier 56886b8c11 processed with astyle
svn path=/trunk/mcs/; revision=159583
2010-06-27 20:11:26 +00:00
C.J. Adams-Collier 33142e1b47 first pass at adding RegexOption.Compiled to constructor in tests
svn path=/trunk/mcs/; revision=158888
2010-06-14 17:36:45 +00:00
Raja R Harinath ce41ff407f Check in up-to-date version of RegexTest.cs. Somehow the previous
checkin got an untested preliminary version

svn path=/trunk/mcs/; revision=141530
2009-09-08 15:12:38 +00:00
Jonathan Pobst cc73e26443 - Fix System tests build. (There were two tests named Split_InvalidCount.)
svn path=/trunk/mcs/; revision=141525
2009-09-08 14:26:08 +00:00
Raja R Harinath 2d8031df3c regex: A few more null and bounds checks
* Regex.cs (Escape, Unescape): Add null checks.
(validate_options): Add ECMAScript option checks.
(Replace, Split): Add a few bounds checks.

svn path=/trunk/mcs/; revision=141459
2009-09-07 17:14:37 +00:00
Raja R Harinath e8d4a97211 Add some null checks and bounds checks.
* Regex.cs (default_startat): New.  Replaces the fragment
'RightToLeft ?  input.Length : 0' with a null-safe variant.
(Replace) <string variant>: Add null checks for argument strings.
(Split): Likewise.
(.ctor): Likewise.  Validate regex options partially.
(Match): Add null check on string arguments, and bounds checks for
offset and length arguments.

svn path=/trunk/mcs/; revision=141457
2009-09-07 16:25:50 +00:00
Roei Erez ccca1e1079 Fix a bug only in TARGET_JVM that happens when a match contains empty group at the end.
svn path=/trunk/mcs/; revision=104994
2008-06-05 12:06:06 +00:00
Gert Driesen 159ff004eb * RegexBugs.cs: No longer derive from deprecated Assertion class.
Added test for bug #313642.
* MatchTest.cs: Code formatting.
* RegexTest.cs: Fixed compiler warnings. Code formatting. Spaces to
tabs.

svn path=/trunk/mcs/; revision=87864
2007-10-21 09:46:50 +00:00
Raja R Harinath e1bb85b9d7 * RegexTest.cs (PrimeRegex): New backtracking torture test using
a regex that recognizes composite numbers represented in unary.

svn path=/trunk/mcs/; revision=75388
2007-04-04 14:33:46 +00:00
Sebastien Pouliot 34cc16225f 2005-11-21 Sebastien Pouliot <[email protected]>
* CaptureCas.cs: New. CAS tests.
	* CaptureCollectionCas.cs: New. CAS tests.
	* GroupCas.cs: New. CAS tests.
	* GroupCollectionCas.cs: New. CAS tests.
	* GroupTest.cs: New. Unit tests.
	* MatchCas.cs: New. CAS tests.
	* MatchCollectionCas.cs: New. CAS tests.
	* MatchTest.cs: New. Unit tests.
	* RegexCas.cs: New. CAS tests.
	* RegexCompilationInfoCas.cs: New. CAS tests.
	* RegexCompilationInfoTest.cs: New. Unit tests.
	* RegexRunnerCas.cs: New. CAS tests.
	* RegexRunnerFactoryCas.cs: New. CAS tests.
	* RegexTest.cs: Added test cases for new (2.0) CacheSize property.


svn path=/trunk/mcs/; revision=53313
2005-11-21 18:37:01 +00:00
Raja R Harinath 7fc75973b9 Clean up formatting
svn path=/trunk/mcs/; revision=47083
2005-07-08 10:07:47 +00:00
Raja R Harinath 9106f292c5 In System.Text.RegularExpressions:
* MatchCollection.cs: Convert to incremental mode.
	* regex.cs (Regex.Matches): Update.  Pass responsibility of
	generating all matches to MatchCollection.

In Test/System.Text.RegularExpressions:
	* RegexTest.cs (Matches1, Matches2, ..., Matches10): Combine into ...
	(Matches): ... this.  Convert to use a data-driven approach.  Use ...
	(trials): ... this.  New variable that lists the regexp, input
	text and expected results.
	(runTrial): New.  Run a suite of MatchCollection tests on each trial.
	Tests both incremental and non-incremental modes.

svn path=/trunk/mcs/; revision=47079
2005-07-08 09:49:44 +00:00
Nick Drochak 755b9d2bdf 2005-01-08 Nick Drochak <[email protected]>
* TypeDescriptorTests.cs:
	* System.ComponentModel/ChangeLog
	* System.ComponentModel/TypeDescriptorTests.cs
	* System.Net.Sockets/ChangeLog
	* System.Net.Sockets/SocketTest.cs
	* System.Text.RegularExpressions/ChangeLog
	* System.Text.RegularExpressions/RegexTest.cs
	* System/ChangeLog
	* System/UriTest.cs
	* System/UriTest2.cs: Fix/Ignore tests for MS.NET

svn path=/trunk/mcs/; revision=38493
2005-01-07 15:42:31 +00:00
Jackson Harper 449432ab5e * RegexTest.cs: Add some simple tests for debugging/zen
building.

svn path=/trunk/mcs/; revision=30750
2004-07-05 16:30:06 +00:00
Jackson Harper b1f84a518a * RegexTest.cs: Add some simple tests for debugging/zen
building.

svn path=/trunk/mcs/; revision=30749
2004-07-05 16:11:37 +00:00
Jambunathan K f333b37b79 Added test case for exercising Regex.Unescape()
Added test cases for exercising \b as a word boundary operator
and as a character class in a regex. Refer bug #58256 for more
information.

svn path=/trunk/mcs/; revision=28913
2004-06-06 15:08:34 +00:00
Miguel de Icaza 47df0810d0 Add to right place
svn path=/trunk/mcs/; revision=20296
2003-11-21 03:00:34 +00:00