mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 23:10:30 +00:00
Add comment to options1
This commit is contained in:
parent
dec6772b05
commit
248dd4415e
2 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,8 @@ mod tests {
|
||||||
// TODO: Fix this test. How do you get the value contained in the
|
// TODO: Fix this test. How do you get the value contained in the
|
||||||
// Option?
|
// Option?
|
||||||
let icecreams = maybe_icecream(12);
|
let icecreams = maybe_icecream(12);
|
||||||
assert_eq!(icecreams, 5);
|
|
||||||
|
assert_eq!(icecreams, 5); // Don't change this line.
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -22,6 +22,7 @@ mod tests {
|
||||||
fn raw_value() {
|
fn raw_value() {
|
||||||
// Using `unwrap` is fine in a test.
|
// Using `unwrap` is fine in a test.
|
||||||
let icecreams = maybe_icecream(12).unwrap();
|
let icecreams = maybe_icecream(12).unwrap();
|
||||||
|
|
||||||
assert_eq!(icecreams, 5);
|
assert_eq!(icecreams, 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue