IsNonDecreasing asserts that the collection is not decreasing require.IsNonDecreasing(t, []int{1, 1, 2}) require.IsNonDecreasing(t, []float{1, 2}) require.IsNonDecreasing(t, []string{"a", "b"})
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 1057 | // require.IsNonDecreasing(t, []float{1, 2}) |
| 1058 | // require.IsNonDecreasing(t, []string{"a", "b"}) |
| 1059 | func IsNonDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) { |
| 1060 | if h, ok := t.(tHelper); ok { |
| 1061 | h.Helper() |
| 1062 | } |
| 1063 | if assert.IsNonDecreasing(t, object, msgAndArgs...) { |
| 1064 | return |
| 1065 | } |
| 1066 | t.FailNow() |
| 1067 | } |
| 1068 | |
| 1069 | // IsNonDecreasingf asserts that the collection is not decreasing |
| 1070 | // |
no test coverage detected