Ejemplo n.º 1
0
 def test_first_fit_decreasing(self):
     sets = bp.first_fit_decreasing(self.items, self.bins, self.cap)
     self.assertEqual(sets, self.empty)
Ejemplo n.º 2
0
 def test_first_fit_decreasing(self):
     sets = bp.first_fit_decreasing(self.items, self.bins, self.cap)
     sets[0].sort()
     self.assertEqual(sets, self.expected)
Ejemplo n.º 3
0
 def test_first_fit_decreasing(self):
     sets = bp.first_fit_decreasing(self.items, self.bins, self.cap)
     sets[0].sort()
     self.assertEqual(sets, self.expected)