Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove type name asserts
  • Loading branch information
MihaZupan committed Nov 23, 2022
commit 58901460efc1a497bea63904aaa30f325833bdb2
1 change: 0 additions & 1 deletion src/libraries/System.Memory/tests/Span/IndexOfAny.byte.cs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,6 @@ public static void AsciiNeedle_ProperlyHandlesEdgeCases_Byte(bool needleContains
// There is some special handling we have to do for ASCII needles to properly filter out non-ASCII results
ReadOnlySpan<byte> needleValues = needleContainsZero ? "AEIOU\0"u8 : "AEIOU!"u8;
IndexOfAnyValues<byte> needle = IndexOfAnyValues.Create(needleValues);
Assert.Contains("Ascii", needle.GetType().Name);

ReadOnlySpan<byte> repeatingHaystack = "AaAaAaAaAaAa"u8;
Assert.Equal(0, repeatingHaystack.IndexOfAny(needle));
Expand Down
1 change: 0 additions & 1 deletion src/libraries/System.Memory/tests/Span/IndexOfAny.char.cs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,6 @@ public static void AsciiNeedle_ProperlyHandlesEdgeCases_Char(bool needleContains
// There is some special handling we have to do for ASCII needles to properly filter out non-ASCII results
ReadOnlySpan<char> needleValues = needleContainsZero ? "AEIOU\0" : "AEIOU!";
IndexOfAnyValues<char> needle = IndexOfAnyValues.Create(needleValues);
Assert.Contains("Ascii", needle.GetType().Name);

ReadOnlySpan<char> repeatingHaystack = "AaAaAaAaAaAa";
Assert.Equal(0, repeatingHaystack.IndexOfAny(needle));
Expand Down