Sha256: 66a1e7f70f9f8d6f2046ea078d821d6e9eaef75cb071f3963fb4d6e508853457
Contents?: true
Size: 704 Bytes
Versions: 59
Compression:
Stored size: 704 Bytes
Contents
import org.junit.Test; import org.junit.Ignore; import static org.hamcrest.CoreMatchers.*; import static org.junit.Assert.*; public class PrimeTest { @Test public void testFirstPrime() { assertThat(Prime.nth(1), is(2)); } @Ignore @Test public void testSecondPrime() { assertThat(Prime.nth(2), is(3)); } @Ignore @Test public void testSixthPrime() { assertThat(Prime.nth(6), is(13)); } @Ignore @Test public void testBigPrime() { assertThat(Prime.nth(10001), is(104743)); } @Ignore @Test(expected = IllegalArgumentException.class) public void testUndefinedPrime() { Prime.nth(0); } }
Version data entries
59 entries across 59 versions & 1 rubygems