Skip to content

[iOS/tvOS] RegexCultureTests.Match_In_Different_Cultures test failures #60697

Closed
@steveisok

Description

@steveisok

After #60607 was merged, certain theory runs started failing in the Match_In_Different_Cultures test. Unsure as to why at this point, but here is an example failure:

<test name="System.Text.RegularExpressions.Tests.RegexCultureTests.Match_In_Different_Cultures(pattern: \&quot;(?i:iI+)\&quot;, options: None, culture: , input: \&quot;abcIiİxyz\&quot;, match_expected: \&quot;Iiİ\&quot;)" type="System.Text.RegularExpressions.Tests.RegexCultureTests" method="Match_In_Different_Cultures" time="0.0057729" result="Fail">
        <failure exception-type="Xunit.Sdk.EqualException">
          <message><![CDATA[Assert.Equal() Failure\n            ↓ (pos 2)\nExpected: Iiİ\nActual:   Ii\n            ↑ (pos 2)]]></message>
          <stack-trace><![CDATA[   at System.Text.RegularExpressions.Tests.RegexCultureTests.Match_In_Different_Cultures(String pattern, RegexOptions options, CultureInfo culture, String input, String match_expected)
   at System.Reflection.RuntimeMethodInfo.InvokeWorker(Object obj, BindingFlags invokeAttr, Span`1& parameters)]]></stack-trace>
        </failure>
      </test>

The rest can be found in https://gist.github.com/steveisok/702d94768c660462f0df76889c877e71

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions