Sha256: ffef5fca033ffeb84641c7caa84e27fc00d0d6acfa609aeccfc7c0b6b64b3624
Contents?: true
Size: 767 Bytes
Versions: 198
Compression:
Stored size: 767 Bytes
Contents
import org.scalatest.{Matchers, FlatSpec} class PrimeTest extends FlatSpec with Matchers { it should "calculate 1st prime" in { Prime.nth(1) should be (Some(2)) } it should "calculate 2nd prime" in { pending Prime.nth(2) should be (Some(3)) } it should "calculate 6th prime" in { pending Prime.nth(6) should be (Some(13)) } it should "calculate 1000th prime" in { pending Prime.nth(1000) should be (Some(7919)) } it should "calculate 10000th prime" in { pending Prime.nth(10000) should be (Some(104729)) } it should "calculate 10001th prime" in { pending Prime.nth(10001) should be (Some(104743)) } it should "not find zeroth prime" in { pending Prime.nth(0) should be (None) } }
Version data entries
198 entries across 198 versions & 1 rubygems