Sign in
fuchsia
/
third_party
/
rust
/
03222c037142e915e9ea75f681ab98a5a46b8739
/
.
/
src
/
libcore
/
tests
/
bool.rs
blob: 0f1e6e89451e9b4294a6aad180c3250e623f2122 [
file
] [
log
] [
blame
]
#[
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
));
}