Sign in
fuchsia
/
third_party
/
rust
/
086b2a49ec8cabf4a66cbaec6c115afe1b33c057
/
.
/
src
/
libcore
/
tests
/
bool.rs
blob: e89eb2c7f94d5731a04e320de4427c0dc4d2af68 [
file
] [
log
] [
blame
]
#[
test
]
fn
test_bool_to_option
()
{
assert_eq
!(
false
.
then_some
(
0
),
None
);
assert_eq
!(
true
.
then_some
(
0
),
Some
(
0
));
assert_eq
!(
false
.
then
(||
0
),
None
);
assert_eq
!(
true
.
then
(||
0
),
Some
(
0
));
}