Sha256: 59977c469a2f7d4aee2424d4447b90b8ea1b7f5c91226d341f1e1c332ef1fb4e

Contents?: true

Size: 1.33 KB

Versions: 208

Compression:

Stored size: 1.33 KB

Contents

import org.scalatest.{FunSuite, Matchers}

class SumOfMultiplesTest extends FunSuite with Matchers {
  test("[3, 5] 1") {
    SumOfMultiples.sumOfMultiples(Set(3, 5), 1) should be (0)
  }

  test("[3, 5] 4") {
    pending
    SumOfMultiples.sumOfMultiples(Set(3, 5), 4) should be (3)
  }

  test("[3, 5] 10") {
    pending
    SumOfMultiples.sumOfMultiples(Set(3, 5), 10) should be (23)
  }

  test("[3, 5] 100") {
    pending
    SumOfMultiples.sumOfMultiples(Set(3, 5), 100) should be (2318)
  }

  test("[3, 5] 1000") {
    pending
    SumOfMultiples.sumOfMultiples(Set(3, 5), 1000) should be (233168)
  }

  test("[7, 13, 17] 20") {
    pending
    SumOfMultiples.sumOfMultiples(Set(7, 13, 17), 20) should be (51)
  }

  test("[4, 6] 15") {
    pending
    SumOfMultiples.sumOfMultiples(Set(4, 6), 15) should be (30)
  }

  test("[5, 6, 8] 150") {
    pending
    SumOfMultiples.sumOfMultiples(Set(5, 6, 8), 150) should be (4419)
  }

  test("[5, 25] 51") {
    pending
    SumOfMultiples.sumOfMultiples(Set(5, 25), 51) should be (275)
  }

  test("[43, 47] 10000") {
    pending
    SumOfMultiples.sumOfMultiples(Set(43, 47), 10000) should be (2203160)
  }

  test("[1] 100") {
    pending
    SumOfMultiples.sumOfMultiples(Set(1), 100) should be (4950)
  }

  test("[] 10000") {
    pending
    SumOfMultiples.sumOfMultiples(Set(), 10000) should be (0)
  }
}

Version data entries

208 entries across 208 versions & 1 rubygems

Version Path
trackler-2.2.1.23 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.22 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.21 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.20 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.19 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.18 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.17 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.16 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.15 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.14 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.13 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.12 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.11 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.10 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.9 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.8 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.7 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.6 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.5 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.2.1.4 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala