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.1.0.46 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.45 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.44 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.43 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.42 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.41 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.40 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.39 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.38 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.37 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.36 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.34 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.33 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.32 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.31 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.30 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.29 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.28 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.27 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala
trackler-2.1.0.26 tracks/scala/exercises/sum-of-multiples/src/test/scala/SumOfMultiplesTest.scala