mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-25 13:39:41 +00:00
according to the idea of gtm-nayan #144, add println!("Success") for each exercise
This commit is contained in:
@ -37,6 +37,8 @@ fn main() {
|
||||
let binary = __;
|
||||
|
||||
assert_eq!(binary, 1);
|
||||
|
||||
println!("Success!")
|
||||
}
|
||||
```
|
||||
|
||||
@ -61,6 +63,8 @@ fn main() {
|
||||
for msg in msgs {
|
||||
show_message(msg)
|
||||
}
|
||||
|
||||
println!("Success!")
|
||||
}
|
||||
|
||||
fn show_message(msg: Message) {
|
||||
@ -91,6 +95,8 @@ fn main() {
|
||||
for ab in alphabets {
|
||||
assert!(__)
|
||||
}
|
||||
|
||||
println!("Success!")
|
||||
}
|
||||
```
|
||||
|
||||
@ -113,6 +119,8 @@ fn main() {
|
||||
}
|
||||
|
||||
assert_eq!(count, 2);
|
||||
|
||||
println!("Success!")
|
||||
}
|
||||
```
|
||||
|
||||
@ -129,6 +137,8 @@ fn main() {
|
||||
match o {
|
||||
Some(i) => {
|
||||
println!("This is a really long string and `{:?}`", i);
|
||||
|
||||
println!("Success!")
|
||||
}
|
||||
_ => {}
|
||||
};
|
||||
@ -148,6 +158,8 @@ fn main() {
|
||||
|
||||
__ {
|
||||
println!("foobar holds the value: {}", i);
|
||||
|
||||
println!("Success!")
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -78,6 +78,8 @@ fn main() {
|
||||
Some(x) => assert!(x >= split),
|
||||
None => (),
|
||||
}
|
||||
|
||||
println!("Success!")
|
||||
}
|
||||
```
|
||||
|
||||
@ -94,6 +96,8 @@ fn main() {
|
||||
assert_eq!(last, 2048);
|
||||
}
|
||||
}
|
||||
|
||||
println!("Success!")
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user