mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 06:49:19 +00:00
Complete test1
This commit is contained in:
parent
b5e81a915b
commit
9290bde71a
@ -10,6 +10,10 @@
|
||||
// Put your function here!
|
||||
// fn ..... {
|
||||
|
||||
fn calculate_price(order: i32) -> i32 {
|
||||
if order <= 40 { order * 2 } else { order }
|
||||
}
|
||||
|
||||
// Don't modify this function!
|
||||
#[test]
|
||||
fn verify_test() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user