Sha256: 2b5bf73ced7bfe66409207f423b039f429bad457d4f97cd9ced3c97ff7efe272
Contents?: true
Size: 530 Bytes
Versions: 89
Compression:
Stored size: 530 Bytes
Contents
import org.junit.Test import kotlin.test.assertEquals import kotlin.test.fail class PrimeTest { @Test fun firstPrime() { assertEquals(2, Prime.nth(1)) } @Test fun secondPrime() { assertEquals(3, Prime.nth(2)) } @Test fun sixthPrime() { assertEquals(13, Prime.nth(6)) } @Test fun bigPrime() { assertEquals(104743, Prime.nth(10001)) } @Test(expected = IllegalArgumentException::class) fun undefinedPrime() { Prime.nth(0) } }
Version data entries
89 entries across 89 versions & 1 rubygems