Sha256: c388d517fdf136973f341618bfdb009d186f717ed7923cdbbd6d56145fc063b6

Contents?: true

Size: 1.75 KB

Versions: 24

Compression:

Stored size: 1.75 KB

Contents

import org.junit.Ignore;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public final class NaturalNumberTest {

    @Test
    public void testSmallPerfectNumberIsClassifiedCorrectly() {
        assertEquals(Classification.PERFECT, new NaturalNumber(6).getClassification());
    }

    @Ignore
    @Test
    public void testMediumPerfectNumberIsClassifiedCorrectly() {
        assertEquals(Classification.PERFECT, new NaturalNumber(28).getClassification());
    }

    @Ignore
    @Test
    public void testLargePerfectNumberIsClassifiedCorrectly() {
        assertEquals(Classification.PERFECT, new NaturalNumber(33550336).getClassification());
    }

    @Ignore
    @Test
    public void testSmallAbundantNumberIsClassifiedCorrectly() {
        assertEquals(Classification.ABUNDANT, new NaturalNumber(12).getClassification());
    }

    @Ignore
    @Test
    public void testMediumAbundantNumberIsClassifiedCorrectly() {
        assertEquals(Classification.ABUNDANT, new NaturalNumber(24).getClassification());
    }

    @Ignore
    @Test
    public void testLargeAbundantNumberIsClassifiedCorrectly() {
        assertEquals(Classification.ABUNDANT, new NaturalNumber(33550335).getClassification());
    }

    @Ignore
    @Test
    public void testSmallDeficientNumberIsClassifiedCorrectly() {
        assertEquals(Classification.DEFICIENT, new NaturalNumber(8).getClassification());
    }

    @Ignore
    @Test
    public void testMediumNumberIsClassifiedCorrectly() {
        assertEquals(Classification.DEFICIENT, new NaturalNumber(31).getClassification());
    }

    @Ignore
    @Test
    public void testLargeDeficientNumberIsClassifiedCorrectly() {
        assertEquals(Classification.DEFICIENT, new NaturalNumber(33550337).getClassification());
    }

}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trackler-2.0.8.11 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.8.10 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.8.9 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.8.8 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.8.7 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.8.6 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.8.5 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.8.4 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.8.3 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.8.2 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.8.1 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.7.0 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.6.44 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.6.43 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.6.42 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.6.41 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.6.40 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.6.39 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.6.38 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java
trackler-2.0.6.37 tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java