mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-28 16:26:31 +00:00
Merge pull request #736 from maartentibau/quiz1_add_explicit_test_40
chore: Update quiz1.rs add explicit test for 40
This commit is contained in:
commit
91530f5716
1 changed files with 4 additions and 2 deletions
|
@ -16,8 +16,10 @@
|
||||||
#[test]
|
#[test]
|
||||||
fn verify_test() {
|
fn verify_test() {
|
||||||
let price1 = calculate_apple_price(35);
|
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!(70, price1);
|
||||||
assert_eq!(65, price2);
|
assert_eq!(80, price2);
|
||||||
|
assert_eq!(65, price3);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue