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{})
| 1013 | // require.IsIncreasing(t, []float{1, 2}) |
| 1014 | // require.IsIncreasing(t, []string{"a", "b"}) |
| 1015 | func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) { |
| 1016 | if h, ok := t.(tHelper); ok { |
| 1017 | h.Helper() |
| 1018 | } |
| 1019 | if assert.IsIncreasing(t, object, msgAndArgs...) { |
| 1020 | return |
| 1021 | } |
| 1022 | t.FailNow() |
| 1023 | } |
| 1024 | |
| 1025 | // IsIncreasingf asserts that the collection is increasing |
| 1026 | // |
no test coverage detected