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