Skip to content

Commit

Permalink
tests, find broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
annechko committed Jan 25, 2024
1 parent c5c6095 commit d4e7cf8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,17 +338,17 @@ int main()
int res = 0;
std::vector<std::function<void()>> tests{
[]() -> void { test_help_when_no_command_expect_see_all_commands_helps(); },
[]() -> void { test_help_when_register_command_expect_no_other_commands(); },
[]() -> void { test_help_when_command_not_exist_expect_error(); },
[]() -> void { test_add_car_when_register_as_admin_expect_car_created(); },
[]() -> void { test_car_list_by_customer_when_car_created_by_admin_expect_customer_sees_car(); },
[]() -> void { test_calculate_rent_when_car_available_expect_correct_price(); },
[]() -> void { test_calculate_or_book_when_car_booked_expect_error_when_dates_not_available(); },
[]() -> void { test_book_car_when_car_available_expect_success_booking(); },
[]() -> void { test_add_car_when_register_as_customer_expect_failed_to_add(); },
[]() -> void { test_car_add_when_not_existed_user_expect_error(); },
[]() -> void { test_car_add_when_not_existed_user_expect_error2(); },
[]() -> void { test_create_user(); },
// []() -> void { test_help_when_register_command_expect_no_other_commands(); },
// []() -> void { test_help_when_command_not_exist_expect_error(); },
// []() -> void { test_add_car_when_register_as_admin_expect_car_created(); },
// []() -> void { test_car_list_by_customer_when_car_created_by_admin_expect_customer_sees_car(); },
// []() -> void { test_calculate_rent_when_car_available_expect_correct_price(); },
// []() -> void { test_calculate_or_book_when_car_booked_expect_error_when_dates_not_available(); },
// []() -> void { test_book_car_when_car_available_expect_success_booking(); },
// []() -> void { test_add_car_when_register_as_customer_expect_failed_to_add(); },
// []() -> void { test_car_add_when_not_existed_user_expect_error(); },
// []() -> void { test_car_add_when_not_existed_user_expect_error2(); },
// []() -> void { test_create_user(); },
};
for (auto& test : tests)
{
Expand Down

0 comments on commit d4e7cf8

Please sign in to comment.