File tree 1 file changed +2
-2
lines changed
src/libraries/System.Text.RegularExpressions/tests/FunctionalTests
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2660,7 +2660,7 @@ public async Task MatchNonBacktrackingOver255Minterms()
2660
2660
// This is a test for the rare over 255 unique minterms case in MintermClassifier
2661
2661
StringBuilder pattern = new ( ) ;
2662
2662
StringBuilder input = new ( ) ;
2663
- for ( int i = 128 ; i <= 500 ; i ++ )
2663
+ for ( int i = 128 ; i <= 400 ; i ++ )
2664
2664
{
2665
2665
char c = ( char ) i ;
2666
2666
pattern . Append ( c ) ;
@@ -2676,7 +2676,7 @@ public async Task MatchNonBacktrackingOver255Minterms()
2676
2676
2677
2677
foreach ( RegexEngine engine in RegexHelpers . AvailableEngines )
2678
2678
{
2679
- Regex r = await RegexHelpers . GetRegexAsync ( RegexEngine . NonBacktracking , patternString , RegexOptions . None ) ;
2679
+ Regex r = await RegexHelpers . GetRegexAsync ( engine , patternString , RegexOptions . None ) ;
2680
2680
MatchCollection ms = r . Matches ( inputString ) ;
2681
2681
Assert . Equal ( 1 , ms . Count ) ;
2682
2682
Assert . Equal ( 0 , ms [ 0 ] . Index ) ;
You can’t perform that action at this time.
0 commit comments