IsNonIncreasing asserts that the collection is not increasing assert.IsNonIncreasing(t, []int{2, 1, 1}) assert.IsNonIncreasing(t, []float{2, 1}) assert.IsNonIncreasing(t, []string{"b", "a"})
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 59 | // assert.IsNonIncreasing(t, []float{2, 1}) |
| 60 | // assert.IsNonIncreasing(t, []string{"b", "a"}) |
| 61 | func IsNonIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { |
| 62 | return isOrdered(t, object, []compareResult{compareEqual, compareGreater}, "\"%v\" is not greater than or equal to \"%v\"", msgAndArgs...) |
| 63 | } |
| 64 | |
| 65 | // IsDecreasing asserts that the collection is decreasing |
| 66 | // |