mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-12 21:59:18 +00:00
fix: quiz1 - price is cheaper for 40 or more
The description says that the discount is for >= 40 but the test for the value of 40 doesn't apply the discount.
This commit is contained in:
parent
3309a01b5e
commit
d116b58bd6
@ -21,6 +21,6 @@ fn verify_test() {
|
|||||||
let price3 = calculate_price_of_apples(65);
|
let price3 = calculate_price_of_apples(65);
|
||||||
|
|
||||||
assert_eq!(70, price1);
|
assert_eq!(70, price1);
|
||||||
assert_eq!(80, price2);
|
assert_eq!(40, price2);
|
||||||
assert_eq!(65, price3);
|
assert_eq!(65, price3);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user