Sha256: 2b3eefe62b64846ee112337d4a766903d954eb50d43d6dab20ad12b5432d0b43
Contents?: true
Size: 1.37 KB
Versions: 186
Compression:
Stored size: 1.37 KB
Contents
import org.scalatest.{FlatSpec, Matchers} class PrimeFactorsTest extends FlatSpec with Matchers { it should "calc empty list" in { PrimeFactors.forNumber(1) should be (List()) } it should "calc prime factors of 2" in { pending PrimeFactors.forNumber(2) should be (List(2)) } it should "calc prime factors of 3" in { pending PrimeFactors.forNumber(3) should be (List(3)) } it should "calc prime factors of 4" in { pending PrimeFactors.forNumber(4) should be (List(2, 2)) } it should "calc prime factors of 6" in { pending PrimeFactors.forNumber(6) should be (List(2, 3)) } it should "calc prime factors of 8" in { pending PrimeFactors.forNumber(8) should be (List(2, 2, 2)) } it should "calc prime factors of 9" in { pending PrimeFactors.forNumber(9) should be (List(3, 3)) } it should "calc prime factors of 27" in { pending PrimeFactors.forNumber(27) should be (List(3, 3, 3)) } it should "calc prime factors of 625" in { pending PrimeFactors.forNumber(625) should be (List(5, 5, 5, 5)) } it should "calc prime factors of 901255" in { pending PrimeFactors.forNumber(901255) should be (List(5, 17, 23, 461)) } it should "calc prime factors of 93819012551" in { pending PrimeFactors.forNumber(Long.MaxValue) should be (List(7, 7, 73, 127, 337, 92737, 649657)) } }
Version data entries
186 entries across 186 versions & 1 rubygems