-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add a test for IndexOfAnyValues.GetValues #80038
Add a test for IndexOfAnyValues.GetValues #80038
Conversation
Tagging subscribers to this area: @dotnet/area-system-memory Issue Details
|
@@ -13,6 +15,59 @@ namespace System.SpanTests | |||
{ | |||
public static partial class SpanTests | |||
{ | |||
private static readonly Func<IndexOfAnyValues<byte>, byte[]> s_getValuesByteMethod = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess you're intentionally getting it from IndexOfAnyValues<T>
rather than IndexOfAnyValuesInRange<T>
, as future refactorings might introduce new subclasses that also should work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, never mind I mis-grepped. But this made me notice you're missing "" to exercise IndexOfEmptyValues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the case for empty values as well
GetValues
is only used by the debug view so we had no test coverage of it.