Sign in
android
/
platform
/
prebuilts
/
rust
/
13cef98f0801f414884ec73627a6132fb686fb78
/
.
/
linux-x86
/
1.40.0
/
src
/
stdlibs
/
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
));
}