Fix libcore tests
This commit is contained in:
parent
50985b012a
commit
6ea469712d
|
@ -1,7 +1,7 @@
|
|||
#[test]
|
||||
fn test_bool_to_option() {
|
||||
assert_eq!(false.then(0), None);
|
||||
assert_eq!(true.then(0), Some(0));
|
||||
assert_eq!(false.then_with(|| 0), None);
|
||||
assert_eq!(true.then_with(|| 0), Some(0));
|
||||
assert_eq!(false.to_option(0), None);
|
||||
assert_eq!(true.to_option(0), Some(0));
|
||||
assert_eq!(false.to_option_with(|| 0), None);
|
||||
assert_eq!(true.to_option_with(|| 0), Some(0));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue