test partition with a slice of ints