Skip to content

Commit 6ea4697

Browse files
committed
Fix libcore tests
1 parent 50985b0 commit 6ea4697

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/tests/bool.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[test]
22
fn test_bool_to_option() {
3-
assert_eq!(false.then(0), None);
4-
assert_eq!(true.then(0), Some(0));
5-
assert_eq!(false.then_with(|| 0), None);
6-
assert_eq!(true.then_with(|| 0), Some(0));
3+
assert_eq!(false.to_option(0), None);
4+
assert_eq!(true.to_option(0), Some(0));
5+
assert_eq!(false.to_option_with(|| 0), None);
6+
assert_eq!(true.to_option_with(|| 0), Some(0));
77
}

0 commit comments

Comments
 (0)