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