IsNonDecreasing asserts that the collection is not decreasing assert.IsNonDecreasing(t, []int{1, 1, 2}) assert.IsNonDecreasing(t, []float{1, 2}) assert.IsNonDecreasing(t, []string{"a", "b"})
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 1044 | // assert.IsNonDecreasing(t, []float{1, 2}) |
| 1045 | // assert.IsNonDecreasing(t, []string{"a", "b"}) |
| 1046 | func IsNonDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) { |
| 1047 | if h, ok := t.(tHelper); ok { |
| 1048 | h.Helper() |
| 1049 | } |
| 1050 | if assert.IsNonDecreasing(t, object, msgAndArgs...) { |
| 1051 | return |
| 1052 | } |
| 1053 | t.FailNow() |
| 1054 | } |
| 1055 | |
| 1056 | // IsNonDecreasingf asserts that the collection is not decreasing |
| 1057 | // |
no test coverage detected
searching dependent graphs…