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