Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review skipped test case for regex scanner with \c[ pattern #65931

Closed
jeffhandley opened this issue Feb 27, 2022 · 3 comments · Fixed by #65932
Closed

Review skipped test case for regex scanner with \c[ pattern #65931

jeffhandley opened this issue Feb 27, 2022 · 3 comments · Fixed by #65932
Labels
area-System.Text.RegularExpressions disabled-test The test is disabled in source code against the issue
Milestone

Comments

@jeffhandley
Copy link
Member

Cleanup Issue-URLs in Code · Issue #63902 · dotnet/runtime identified a test case that is being skipped, but the referenced issue has been fixed. The PR with the fix indicates that a different approach might have been possible, but the applied fix has been accepted for some time now.

yield return new object[] { engine, null, @"(cat)(\cz*)(dog)", "asdlkcat\u001adogiwod", RegexOptions.None, new string[] { "cat\u001adog", "cat", "\u001a", "dog" } };
if (!PlatformDetection.IsNetFramework) // missing fix for https://github.com/dotnet/runtime/issues/24759
{
yield return new object[] { engine, null, @"(cat)(\c[*)(dog)", "asdlkcat\u001bdogiwod", RegexOptions.None, new string[] { "cat\u001bdog", "cat", "\u001b", "dog" } };

The skipped test case should be evaluated to determine if the fix made allows the test to pass. With the findings we should either enable the test case or update the code comment to reference this open issue for tracking.

/cc @deeprobin

@jeffhandley jeffhandley added area-System.Text.RegularExpressions disabled-test The test is disabled in source code against the issue labels Feb 27, 2022
@ghost
Copy link

ghost commented Feb 27, 2022

Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions
See info in area-owners.md if you want to be subscribed.

Issue Details

Cleanup Issue-URLs in Code · Issue #63902 · dotnet/runtime identified a test case that is being skipped, but the referenced issue has been fixed. The PR with the fix indicates that a different approach might have been possible, but the applied fix has been accepted for some time now.

yield return new object[] { engine, null, @"(cat)(\cz*)(dog)", "asdlkcat\u001adogiwod", RegexOptions.None, new string[] { "cat\u001adog", "cat", "\u001a", "dog" } };
if (!PlatformDetection.IsNetFramework) // missing fix for https://github.com/dotnet/runtime/issues/24759
{
yield return new object[] { engine, null, @"(cat)(\c[*)(dog)", "asdlkcat\u001bdogiwod", RegexOptions.None, new string[] { "cat\u001bdog", "cat", "\u001b", "dog" } };

The skipped test case should be evaluated to determine if the fix made allows the test to pass. With the findings we should either enable the test case or update the code comment to reference this open issue for tracking.

/cc @deeprobin

Author: jeffhandley
Assignees: -
Labels:

area-System.Text.RegularExpressions, disabled-test

Milestone: -

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Feb 27, 2022
@joperezr
Copy link
Member

Thanks for opening this @jeffhandley . By quickly skimming the code, seems like the issue was fixed in .Net (Core) but the comment indicates that the test case is skipped in .net framework since the fix wouldn’t be present there. I will still check to see if we can add the testcase, but from the comment it seems like we are skipping the test by design.

@jeffhandley
Copy link
Member Author

Thanks, @joperezr; that makes sense. I can update the comment as part of #65932 to address this then.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Feb 27, 2022
@jeffhandley jeffhandley added this to the 7.0.0 milestone Feb 27, 2022
@jeffhandley jeffhandley removed the untriaged New issue has not been triaged by the area owner label Feb 27, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Feb 28, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Text.RegularExpressions disabled-test The test is disabled in source code against the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants