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

Version Path
trackler-2.0.6.1 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.6.0 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.18 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.17 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.16 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.15 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.14 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.13 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.12 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.11 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.10 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.9 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.8 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.7 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.6 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.5 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.4 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.3 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java
trackler-2.0.5.2 tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java