Sha256: 68d0874272e6838526345f3d9f92a7c6ed6fb4a8ea2e54376c46c9d5b9c9e559
Contents?: true
Size: 761 Bytes
Versions: 236
Compression:
Stored size: 761 Bytes
Contents
import org.scalatest.{Matchers, FunSuite} 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
236 entries across 236 versions & 1 rubygems