Пример #1
0
 def testNine(self):
     assert PrimeFactors.generate(9) == [3, 3]
Пример #2
0
 def testSix(self):
     assert PrimeFactors.generate(6) == [2, 3]
Пример #3
0
 def testEight(self):
     assert PrimeFactors.generate(8) == [2, 2, 2]
Пример #4
0
 def testFive(self):
     assert PrimeFactors.generate(5) == [
         5,
     ]
Пример #5
0
 def testFour(self):
     assert PrimeFactors.generate(4) == [2, 2]
Пример #6
0
 def testThree(self):
     assert PrimeFactors.generate(3) == [
         3,
     ]
Пример #7
0
 def testTwo(self):
     assert PrimeFactors.generate(2) == [
         2,
     ]
Пример #8
0
 def testOne(self):
     assert PrimeFactors.generate(1) == []