Sign in
android
/
platform
/
prebuilts
/
rust
/
97b8b051982b3a0e924c462ec66b2d4d45392676
/
.
/
linux-x86
/
1.55.0
/
src
/
stdlibs
/
library
/
alloc
/
tests
/
btree_set_hash.rs
blob: e06a95ded94c75dc09577214ea54bc8b71ae921f [
file
] [
log
] [
blame
]
use
std
::
collections
::
BTreeSet
;
#[
test
]
fn
test_hash
()
{
use
crate
::
hash
;
let
mut
x
=
BTreeSet
::
new
();
let
mut
y
=
BTreeSet
::
new
();
x
.
insert
(
1
);
x
.
insert
(
2
);
x
.
insert
(
3
);
y
.
insert
(
3
);
y
.
insert
(
2
);
y
.
insert
(
1
);
assert_eq
!(
hash
(&
x
),
hash
(&
y
));
}