mirror of
https://github.com/rust-lang/rustlings
synced 2024-11-10 06:34:20 +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
|
||||
// Option?
|
||||
let icecreams = maybe_icecream(12);
|
||||
assert_eq!(icecreams, 5);
|
||||
|
||||
assert_eq!(icecreams, 5); // Don't change this line.
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -22,6 +22,7 @@ mod tests {
|
|||
fn raw_value() {
|
||||
// Using `unwrap` is fine in a test.
|
||||
let icecreams = maybe_icecream(12).unwrap();
|
||||
|
||||
assert_eq!(icecreams, 5);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue