Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions exercises/concept/vehicle-purchase/vehicle_purchase_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ TEST_CASE("chooses Bugatti over Ford") {
"Bugatti Veyron is clearly the better choice.");
}
TEST_CASE("chooses Chery over Kia") {
std::string choice1{"Chery EQ"};
std::string choice2{"Kia Niro Elektro"};
std::string choice1{"Kia Niro Elektro"};
std::string choice2{"Chery EQ"};
REQUIRE(vehicle_purchase::choose_vehicle(choice1, choice2) ==
"Chery EQ is clearly the better choice.");
}
Expand All @@ -49,8 +49,8 @@ TEST_CASE("chooses Ford Focus over Ford Pinto") {
"Ford Focus is clearly the better choice.");
}
TEST_CASE("chooses 2018 over 2020") {
std::string choice1{"2018 Bergamont City"};
std::string choice2{"2020 Gazelle Medeo"};
std::string choice1{"2020 Gazelle Medeo"};
std::string choice2{"2018 Bergamont City"};
REQUIRE(vehicle_purchase::choose_vehicle(choice1, choice2) ==
"2018 Bergamont City is clearly the better choice.");
}
Expand Down Expand Up @@ -103,4 +103,4 @@ TEST_CASE("float price is reduced to 70% for age 8,") {
REQUIRE_THAT(vehicle_purchase::calculate_resell_price(original_price, age), Catch::Matchers::WithinRel(expected, 0.001));
}

#endif
#endif