Esempio n. 1
0
 def test_valid_rids_a(self):
     (_rides_list, _rows, _columns, _vehicles, rides, _bonus,
      _steps) = parse_input(RES_FOLDER + "a_example.in")
     vehicles_rides = parse_output(RES_FOLDER + "a_example.out")
     self.assertTrue(check_ride_ids(vehicles_rides, rides))
Esempio n. 2
0
 def test_invalid_rids_assigned_more_than_once(self):
     rides = 10
     vehicles_rides = [[1, 2, 3], [2, 8]]
     self.assertFalse(check_ride_ids(vehicles_rides, rides))
Esempio n. 3
0
 def test_invalid_rids_range(self):
     rides = 10
     vehicles_rides = [[1, 2, 3], [12]]
     self.assertFalse(check_ride_ids(vehicles_rides, rides))
Esempio n. 4
0
 def test_valid_rids_b(self):
     (_rides_list, _rows, _columns, _vehicles, rides, _bonus,
      _steps) = parse_input(RES_FOLDER + "b_should_be_easy.in")
     vehicles_rides = parse_output(RES_FOLDER + "b_should_be_easy.out")
     self.assertTrue(check_ride_ids(vehicles_rides, rides))
Esempio n. 5
0
 def test_valid_rids_b(self):
     (rides_list, rows, columns, vehicles, rides, bonus,
      steps) = parse_input(res_folder + "b_should_be_easy.in")
     vehicles_rides = parse_output(res_folder + "b_should_be_easy.out")
     self.assertTrue(check_ride_ids(vehicles_rides, rides))
Esempio n. 6
0
 def test_valid_rids_a(self):
     (rides_list, rows, columns, vehicles, rides, bonus,
      steps) = parse_input(res_folder + "a_example.in")
     vehicles_rides = parse_output(res_folder + "a_example.out")
     self.assertTrue(check_ride_ids(vehicles_rides, rides))