IsIncreasing asserts that the collection is increasing require.IsIncreasing(t, []int{1, 2, 3}) require.IsIncreasing(t, []float{1, 2}) require.IsIncreasing(t, []string{"a", "b"})
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 1027 | // require.IsIncreasing(t, []float{1, 2}) |
| 1028 | // require.IsIncreasing(t, []string{"a", "b"}) |
| 1029 | func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) { |
| 1030 | if h, ok := t.(tHelper); ok { |
| 1031 | h.Helper() |
| 1032 | } |
| 1033 | if assert.IsIncreasing(t, object, msgAndArgs...) { |
| 1034 | return |
| 1035 | } |
| 1036 | t.FailNow() |
| 1037 | } |
| 1038 | |
| 1039 | // IsIncreasingf asserts that the collection is increasing |
| 1040 | // |
no test coverage detected