chore: Update quiz1.rs add explicit test for 40

This commit is contained in:
Maarten Tibau 2021-04-25 17:49:46 +02:00
parent 6b6dc9dd48
commit 650b1dee54
No known key found for this signature in database
GPG Key ID: B1B903BD27B7EFC1
1 changed files with 4 additions and 2 deletions

View File

@ -16,8 +16,10 @@
#[test]
fn verify_test() {
let price1 = calculate_apple_price(35);
let price2 = calculate_apple_price(65);
let price2 = calculate_apple_price(40);
let price3 = calculate_apple_price(65);
assert_eq!(70, price1);
assert_eq!(65, price2);
assert_eq!(80, price2);
assert_eq!(65, price3);
}