mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 00:00:05 +03:00
fix(quiz1): add fourth assert
This commit is contained in:
parent
96552e07c2
commit
1d5700e58a
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue