The lib contains a list of functions for checking ordering of slices and arrays. The following checks are implemented:
- IsOrdered
- IsNotOrdered
- IsOrderedAsc
- IsNotOrderedAsc
- IsOrderedDesc
- IsNotOrderedDesc
package main
import (
"testing"
"github.com/alexpantyukhin/assertord"
)
func TestIsOrdered(t *testing.T) {
arr := []int{1, 2, 3, 4}
assertord.IsOrdered(t, arr)
}