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

Version Path
trackler-2.2.1.30 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.29 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.28 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.27 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.26 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.25 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.24 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.23 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.22 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.21 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.20 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.19 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.18 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.17 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.16 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.15 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.14 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.13 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.12 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala
trackler-2.2.1.11 tracks/scala/exercises/series/src/test/scala/SeriesTest.scala