示例#1
0
 def test_job_completion(self):
     sim_len_ms = 20 # ms
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 1), 132)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 2), 402)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 3), 672)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 4), 942)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 2, 2, 1), 267)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 2, 2, 2), 807)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 3, 3, 1), 537)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 3, 3, 2), 1077)
示例#2
0
 def test_job_completion(self):
     sim_len_ms = 20 # ms
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 1), 132)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 2), 882)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 2, 2, 1), 267)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 2, 2, 2), 1382)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 3, 3, 1), 402)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 3, 3, 2), 1882)
示例#3
0
 def test_job_completion(self):
     sim_len_ms = 20  # ms
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 1),
                      132)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 2),
                      402)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 3),
                      672)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 4),
                      942)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 2, 2, 1),
                      267)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 2, 2, 2),
                      807)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 3, 3, 1),
                      537)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 3, 3, 2),
                      1077)
示例#4
0
 def test_job_completion(self):
     sim_len_ms = 20  # ms
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 1),
                      132)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 1, 1, 2),
                      882)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 2, 2, 1),
                      267)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 2, 2, 2),
                      1382)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 3, 3, 1),
                      402)
     self.assertEqual(sim.completion_time(self.ms, sim_len_ms, 3, 3, 2),
                      1882)