fix(quiz1): add fourth assert

This commit is contained in:
liv 2022-09-06 12:10:53 +02:00 committed by GitHub
parent 96552e07c2
commit 1d5700e58a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,9 +20,11 @@
fn verify_test() { fn verify_test() {
let price1 = calculate_price_of_apples(35); let price1 = calculate_price_of_apples(35);
let price2 = calculate_price_of_apples(40); let price2 = calculate_price_of_apples(40);
let price3 = calculate_price_of_apples(65); let price3 = calculate_price_of_apples(41);
let price4 = calculate_price_of_apples(65);
assert_eq!(70, price1); assert_eq!(70, price1);
assert_eq!(80, price2); assert_eq!(80, price2);
assert_eq!(65, price3); assert_eq!(41, price3);
assert_eq!(65, price4);
} }