Skip to content

Commit

Permalink
Re-enable a few Regex source generator tests (#67585)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored Apr 6, 2022
1 parent 90908d5 commit bb5d94d
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1798,12 +1798,6 @@ public static IEnumerable<object[]> StressTestDeepNestingOfConcat_TestData()
[MemberData(nameof(StressTestDeepNestingOfConcat_TestData))]
public async Task StressTestDeepNestingOfConcat(RegexEngine engine, string pattern, string anchor, string input, int pattern_repetition, int input_repetition)
{
if (engine == RegexEngine.SourceGenerated)
{
// Currently too stressful for Roslyn.
return;
}

if (engine == RegexEngine.NonBacktracking)
{
// [ActiveIssue("https://github.com/dotnet/runtime/issues/60645")]
Expand Down Expand Up @@ -1832,12 +1826,6 @@ public static IEnumerable<object[]> StressTestDeepNestingOfLoops_TestData()
[MemberData(nameof(StressTestDeepNestingOfLoops_TestData))]
public async Task StressTestDeepNestingOfLoops(RegexEngine engine, string begin, string inner, string end, RegexOptions options, string input, int pattern_repetition, int input_repetition)
{
if (engine == RegexEngine.SourceGenerated)
{
// Currently too stressful for Roslyn.
return;
}

string fullpattern = string.Concat(Enumerable.Repeat(begin, pattern_repetition)) + inner + string.Concat(Enumerable.Repeat(end, pattern_repetition));
string fullinput = string.Concat(Enumerable.Repeat(input, input_repetition));

Expand Down

0 comments on commit bb5d94d

Please sign in to comment.