Ejemplo n.º 1
0
 def test_schedule_single_job(self):
     jobs = [(1, 3)]
     response = optimize_schedule(jobs)
     expected = [jobs]
     self.assertEqual(response, expected)
Ejemplo n.º 2
0
 def test_schedule_three_compatible_jobs(self):
     jobs = [(1, 3), (3, 5), (3, 4), (4, 5)]
     response = optimize_schedule(jobs)
     expected = [[(1, 3), (3, 4), (4, 5)]]
     self.assertEqual(response, expected)
Ejemplo n.º 3
0
 def test_schedule_two_incompatible_jobs(self):
     jobs = [(1, 3), (2, 5)]
     response = optimize_schedule(jobs)
     expected = [[(1, 3)], [(2, 5)]]
     self.assertEqual(response, expected)
Ejemplo n.º 4
0
 def test_schedule_single_job(self):
     jobs = [(1, 3)]
     response = optimize_schedule(jobs)
     expected = [jobs]
     self.assertEqual(response, expected)
Ejemplo n.º 5
0
 def test_schedule_three_compatible_jobs(self):
     jobs = [(1, 3), (3, 5), (3, 4), (4, 5)]
     response = optimize_schedule(jobs)
     expected = [[(1, 3), (3, 4), (4, 5)]]
     self.assertEqual(response, expected)
Ejemplo n.º 6
0
 def test_schedule_two_incompatible_jobs(self):
     jobs = [(1, 3), (2, 5)]
     response = optimize_schedule(jobs)
     expected = [[(1, 3)], [(2, 5)]]
     self.assertEqual(response, expected)