예제 #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))
예제 #2
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))
예제 #3
0
 def test_valid_vehicles_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_vehicles(vehicles, len(vehicles_rides)))
예제 #4
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))