Example #1
0
 @Test
 public void testOne() {
   assertEquals(expectedList(), PrimeFactors.Create(1));
 }
Example #2
0
 @Test
 public void testNine() {
   assertEquals(expectedList(3, 3), PrimeFactors.Create(9));
 }
Example #3
0
 @Test
 public void testEight() {
   assertEquals(expectedList(2, 2, 2), PrimeFactors.Create(8));
 }
Example #4
0
 @Test
 public void testSix() {
   assertEquals(expectedList(2, 3), PrimeFactors.Create(6));
 }
Example #5
0
 @Test
 public void testFour() {
   assertEquals(expectedList(2, 2), PrimeFactors.Create(4));
 }
Example #6
0
 @Test
 public void testTwo() {
   assertEquals(expectedList(2), PrimeFactors.Create(2));
 }