IsDecreasing asserts that the collection is decreasing require.IsDecreasing(t, []int{2, 1, 0}) require.IsDecreasing(t, []float{2, 1}) require.IsDecreasing(t, []string{"b", "a"})
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 997 | // require.IsDecreasing(t, []float{2, 1}) |
| 998 | // require.IsDecreasing(t, []string{"b", "a"}) |
| 999 | func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) { |
| 1000 | if h, ok := t.(tHelper); ok { |
| 1001 | h.Helper() |
| 1002 | } |
| 1003 | if assert.IsDecreasing(t, object, msgAndArgs...) { |
| 1004 | return |
| 1005 | } |
| 1006 | t.FailNow() |
| 1007 | } |
| 1008 | |
| 1009 | // IsDecreasingf asserts that the collection is decreasing |
| 1010 | // |
no test coverage detected