IsDecreasing asserts that the collection is decreasing assert.IsDecreasing(t, []int{2, 1, 0}) assert.IsDecreasing(t, []float{2, 1}) assert.IsDecreasing(t, []string{"b", "a"})
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 68 | // assert.IsDecreasing(t, []float{2, 1}) |
| 69 | // assert.IsDecreasing(t, []string{"b", "a"}) |
| 70 | func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { |
| 71 | return isOrdered(t, object, []compareResult{compareGreater}, "\"%v\" is not greater than \"%v\"", msgAndArgs...) |
| 72 | } |
| 73 | |
| 74 | // IsNonDecreasing asserts that the collection is not decreasing |
| 75 | // |