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