Skip to content

Commit 9b4966b

Browse files
committed
Add smoke test
1 parent ec329e0 commit 9b4966b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/smoke.rs

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
extern crate rudy;
2+
3+
#[test]
4+
fn smoke_test() {
5+
use rudy::rudymap::RudyMap;
6+
7+
let mut map: RudyMap<u32, u32> = RudyMap::new();
8+
let n = 10_000;
9+
10+
for i in 0..n {
11+
assert!(map.insert(i, i).is_none());
12+
}
13+
14+
for i in 0..n {
15+
assert_eq!(map.remove(i), Some(i));
16+
}
17+
}

0 commit comments

Comments
 (0)