mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-12 13:49:19 +00:00
fix
This commit is contained in:
parent
01f77b2aff
commit
e05ae03eb9
@ -5,7 +5,7 @@
|
|||||||
// - If
|
// - If
|
||||||
|
|
||||||
// Mary is buying apples. One apple usually costs 2 Rustbucks, but if you buy
|
// Mary is buying apples. One apple usually costs 2 Rustbucks, but if you buy
|
||||||
// 40 or more at once, each apple only costs 1! Write a function that calculates
|
// more than 40 at once, each apple only costs 1! Write a function that calculates
|
||||||
// the price of an order of apples given the quantity bought. No hints this time!
|
// the price of an order of apples given the quantity bought. No hints this time!
|
||||||
|
|
||||||
// I AM NOT DONE
|
// I AM NOT DONE
|
||||||
@ -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!(40, price2);
|
assert_eq!(80, price2);
|
||||||
assert_eq!(65, price3);
|
assert_eq!(65, price3);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user