Skip to content

Commit 6fc3d47

Browse files
committed
test bugfix
1 parent 1e6ef9c commit 6fc3d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/Regex.Match.Tests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2660,7 +2660,7 @@ public async Task MatchNonBacktrackingOver255Minterms()
26602660
// This is a test for the rare over 255 unique minterms case in MintermClassifier
26612661
StringBuilder pattern = new();
26622662
StringBuilder input = new();
2663-
for (int i = 128; i <= 500; i++)
2663+
for (int i = 128; i <= 400; i++)
26642664
{
26652665
char c = (char)i;
26662666
pattern.Append(c);
@@ -2676,7 +2676,7 @@ public async Task MatchNonBacktrackingOver255Minterms()
26762676

26772677
foreach (RegexEngine engine in RegexHelpers.AvailableEngines)
26782678
{
2679-
Regex r = await RegexHelpers.GetRegexAsync(RegexEngine.NonBacktracking, patternString, RegexOptions.None);
2679+
Regex r = await RegexHelpers.GetRegexAsync(engine, patternString, RegexOptions.None);
26802680
MatchCollection ms = r.Matches(inputString);
26812681
Assert.Equal(1, ms.Count);
26822682
Assert.Equal(0, ms[0].Index);

0 commit comments

Comments
 (0)