Add comment to options1

This commit is contained in:
mo8it 2024-07-04 13:00:04 +02:00
parent dec6772b05
commit 248dd4415e
2 changed files with 3 additions and 1 deletions

View file

@ -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]

View file

@ -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);
}