]> git.lizzy.rs Git - rust.git/blob - library/alloc/tests/btree_set_hash.rs
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / library / alloc / tests / btree_set_hash.rs
1 use std::collections::BTreeSet;
2
3 #[test]
4 fn test_hash() {
5     use crate::hash;
6
7     let mut x = BTreeSet::new();
8     let mut y = BTreeSet::new();
9
10     x.insert(1);
11     x.insert(2);
12     x.insert(3);
13
14     y.insert(3);
15     y.insert(2);
16     y.insert(1);
17
18     assert_eq!(hash(&x), hash(&y));
19 }