fix(quiz1): change function name
This commit is contained in:
parent
1a7a3f5c8e
commit
c265b681b1
@ -11,14 +11,14 @@
|
|||||||
// I AM NOT DONE
|
// I AM NOT DONE
|
||||||
|
|
||||||
// Put your function here!
|
// Put your function here!
|
||||||
// fn calculate_apple_price {
|
// fn calculate_price_of_apples {
|
||||||
|
|
||||||
// Don't modify this function!
|
// Don't modify this function!
|
||||||
#[test]
|
#[test]
|
||||||
fn verify_test() {
|
fn verify_test() {
|
||||||
let price1 = calculate_apple_price(35);
|
let price1 = calculate_price_of_apples(35);
|
||||||
let price2 = calculate_apple_price(40);
|
let price2 = calculate_price_of_apples(40);
|
||||||
let price3 = calculate_apple_price(65);
|
let price3 = calculate_price_of_apples(65);
|
||||||
|
|
||||||
assert_eq!(70, price1);
|
assert_eq!(70, price1);
|
||||||
assert_eq!(80, price2);
|
assert_eq!(80, price2);
|
||||||
|
Reference in New Issue
Block a user