示例#1
0
 def test_n_ge_k(self):
     self.assertEqual(n_parts(11, 5), 10)
     self.assertEqual(n_parts(11, 11), 1)
示例#2
0
 def test_equal(self):
     self.assertEqual(n_parts(5, 5), 1)
示例#3
0
 def test_n_le_k(self):
     self.assertEqual(n_parts(0, 3), 0)
     self.assertEqual(n_parts(3, 7), 0)
示例#4
0
 def test_zero(self):
     self.assertEqual(n_parts(0, 0), 1)