mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-01-22 04:08:38 +02:00
Add comment to options1
This commit is contained in:
parent
dec6772b05
commit
248dd4415e
@ -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…
x
Reference in New Issue
Block a user