You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think if we had something like assert.IsSorted() it should also work on types that don't implement sort.Interface, it could also check if slices of Strings, Ints and Float64s are sorted, as per the functions in the sort package?
Ah, apologies, I totally missed that IsIncreasing is already a function. Yes, it should be trivial to make these support collections implementing sort.Interface.
Given the following type implementing the sort interface
I should be able to perform sort assertions
The text was updated successfully, but these errors were encountered: