Sha256: 8ef1c3a7af3eddaff42a4e44590824e7a0dbd8f6f4e08bc4e11c50edf359a8c3
Contents?: true
Size: 735 Bytes
Versions: 12
Compression:
Stored size: 735 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") { 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") { 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
12 entries across 12 versions & 1 rubygems