Sign in
fuchsia
/
third_party
/
rust
/
15f159addefd8fea7564ba7617c8af78582b7816
/
.
/
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
));
}