@@ -6,21 +6,21 @@ public static partial class ReadOnlySpanSplitTests
66 {
77 public sealed partial class SplitAny
88 {
9- // [Fact]
10- // public void EnumerationReturnsReadOnlySpans()
11- // {
12- //#pragma warning disable CS0183 // 'is' expression's given expression is always of the provided type
13- // foreach(var span in "abaca".AsSpan().SplitAny(['b', 'c']))
14- // {
15- // Assert.True(span is ReadOnlySpan<char>);
16- // }
17-
18- // foreach(var span in "abaca".AsSpan().SplitAny(['b', 'c'], 10))
19- // {
20- // Assert.True(span is ReadOnlySpan<char>);
21- // }
22- //#pragma warning restore CS0183 // 'is' expression's given expression is always of the provided type
23- // }
9+ // [Fact]
10+ // public void EnumerationReturnsReadOnlySpans()
11+ // {
12+ //#pragma warning disable CS0183 // 'is' expression's given expression is always of the provided type
13+ // foreach(var span in "abaca".AsSpan().SplitAny(['b', 'c']))
14+ // {
15+ // Assert.True(span is ReadOnlySpan<char>);
16+ // }
17+
18+ // foreach(var span in "abaca".AsSpan().SplitAny(['b', 'c'], 10))
19+ // {
20+ // Assert.True(span is ReadOnlySpan<char>);
21+ // }
22+ //#pragma warning restore CS0183 // 'is' expression's given expression is always of the provided type
23+ // }
2424
2525 [ Fact ]
2626 public void EmptySourceResultInEmptySpan ( )
@@ -41,7 +41,7 @@ public void NoDelimiterOccurenceResultsInNoChange()
4141
4242 var expected = NestedABBAArray ;
4343
44- var actual = source . SplitAny ( [ 'b ' , 'c ' ] ) . ToSystemEnumerable ( ) ;
44+ var actual = source . SplitAny ( [ 'c ' , 'd ' ] ) . ToSystemEnumerable ( ) ;
4545
4646 AssertEqual ( expected , actual ) ;
4747 }
0 commit comments