Skip to content

Commit fd38ff6

Browse files
committed
Fix libcore tests
1 parent 7d33aa8 commit fd38ff6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/tests/bool.rs

+4-4
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)