IsIncreasing asserts that the collection is increasing assert.IsIncreasing(t, []int{1, 2, 3}) assert.IsIncreasing(t, []float{1, 2}) assert.IsIncreasing(t, []string{"a", "b"})
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 50 | // assert.IsIncreasing(t, []float{1, 2}) |
| 51 | // assert.IsIncreasing(t, []string{"a", "b"}) |
| 52 | func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { |
| 53 | return isOrdered(t, object, []compareResult{compareLess}, "\"%v\" is not less than \"%v\"", msgAndArgs...) |
| 54 | } |
| 55 | |
| 56 | // IsNonIncreasing asserts that the collection is not increasing |
| 57 | // |