Sha256: 135915c97999e45a0ed8639eb7980e03447a95b457e0250da5d34c11cd3bbe8a
Contents?: true
Size: 795 Bytes
Versions: 148
Compression:
Stored size: 795 Bytes
Contents
import org.scalatest.{Matchers, FunSuite} /** @version created manually **/ class SeriesTest extends FunSuite with Matchers { test("slices of one") { Series.slices(1, "") should be (List()) Series.slices(1, "01234") should be (List(List(0), List(1), List(2), List(3), List(4))) } test("slices of two") { pending Series.slices(2, "") should be (List()) Series.slices(2, "01") should be (List(List(0, 1))) Series.slices(2, "01234") should be (List(List(0, 1), List(1, 2), List(2, 3), List(3, 4))) } test("slices of three") { pending Series.slices(3, "") should be (List()) Series.slices(3, "012") should be (List(List(0, 1, 2))) Series.slices(3, "01234") should be (List(List(0, 1, 2), List(1, 2, 3), List(2, 3, 4))) } }
Version data entries
148 entries across 148 versions & 1 rubygems