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{})
| 77 | // assert.IsNonDecreasing(t, []float{1, 2}) |
| 78 | // assert.IsNonDecreasing(t, []string{"a", "b"}) |
| 79 | func IsNonDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { |
| 80 | return isOrdered(t, object, []compareResult{compareLess, compareEqual}, "\"%v\" is not less than or equal to \"%v\"", msgAndArgs...) |
| 81 | } |