示例#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) == []