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))
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))
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)))
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))