Skip to content

Remove duplicates and fix namespaces in S.T.RegularExpressions.Tests#33917

Merged
ViktorHofer merged 1 commit intomasterfrom
RegularExpressionsTestsDuplicatesAndNamespaces
Mar 21, 2020
Merged

Remove duplicates and fix namespaces in S.T.RegularExpressions.Tests#33917
ViktorHofer merged 1 commit intomasterfrom
RegularExpressionsTestsDuplicatesAndNamespaces

Conversation

@ViktorHofer
Copy link
Member

Relates to #33915 (VSTest runner logs duplicate test rows)

yield return new object[] { @"^(((?<foo>\()[^()]*)+((?<bar-foo>\))[^()]*)+)+(?(foo)(?!))$", RegexOptions.None, "((a(b))c))","Fail." };
yield return new object[] { @"^(((?<foo>\()[^()]*)+((?<bar-foo>\))[^()]*)+)+(?(foo)(?!))$", RegexOptions.None, ")(","Fail." };
yield return new object[] { @"^(((?<foo>\()[^()]*)+((?<bar-foo>\))[^()]*)+)+(?(foo)(?!))$", RegexOptions.None, "((a((b))c)","Fail." };
yield return new object[] { @"b", RegexOptions.RightToLeft, "babaaa", "Pass. Group[0]=(2,1)" };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this one duplicated?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yield return new object[] { @"b", RegexOptions.RightToLeft, "babaaa", "Pass. Group[0]=(2,1)" };

yield return new object[] { "(\u0034)", "4", RegexOptions.None, 0, 1, true, "4", };

// Using *, +, ?, {}: Actual - "a+\\.?b*\\.?c{2}"
yield return new object[] { @"a+\.?b*\.+c{2}", "ab.cc", RegexOptions.None, 0, 5, true, "ab.cc" };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this one duplicated?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yield return new object[] { @"a+\.?b*\.+c{2}", "ab.cc", RegexOptions.None, 0, 5, true, "ab.cc" };

@ViktorHofer
Copy link
Member Author

Forgot to mention that I used a VSCode extension for identifying and trimming most of the duplicates.

@ViktorHofer ViktorHofer merged commit c73774b into master Mar 21, 2020
@jkotas jkotas deleted the RegularExpressionsTestsDuplicatesAndNamespaces branch March 22, 2020 18:52
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants