Sha256: 513933807bc26f18361a72fa00c1bc5d52e7d4f6fe13ee02701aa72132e515e6
Contents?: true
Size: 540 Bytes
Versions: 96
Compression:
Stored size: 540 Bytes
Contents
import org.scalatest.{Matchers, FunSuite} /** @version 1.0.0 */ class NthPrimeTest extends FunSuite with Matchers { test("first prime") { NthPrime.prime(1) should be (Some(2)) } test("second prime") { pending NthPrime.prime(2) should be (Some(3)) } test("sixth prime") { pending NthPrime.prime(6) should be (Some(13)) } test("big prime") { pending NthPrime.prime(10001) should be (Some(104743)) } test("there is no zeroth prime") { pending NthPrime.prime(0) should be (None) } }
Version data entries
96 entries across 96 versions & 1 rubygems