示例#1
0
 def test_generate_seventyeight(self):
     self.assertEqual(prime_factors.generate(78), [2, 3, 13])
示例#2
0
 def test_generate_fifteen(self):
     self.assertEqual(prime_factors.generate(15), [3, 5])
示例#3
0
 def test_generate_sixteen(self):
     self.assertEqual(prime_factors.generate(16), [2, 2, 2, 2])
示例#4
0
 def test_generate_one(self):
     self.assertEqual(prime_factors.generate(1), [])