Skip to content

Commit 4eab8a8

Browse files
Update lib.rs
1 parent 81dbc70 commit 4eab8a8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,18 @@ mod test {
833833
.or_insert_with(|| X(1, 0));
834834
}
835835

836+
#[test]
837+
fn test_duplicate_clean() {
838+
let mut storage: Storage<u64,u64,X> = Storage::new();
839+
840+
storage.add(X(0,0));
841+
842+
storage.entry(&ID.chunk(0).item(0));
843+
storage.remove(&ID.chunk(0).item(0));
844+
845+
storage.validate();
846+
}
847+
836848
#[test]
837849
fn test_str() {
838850
let mut storage: Storage<str, str, S> = Storage::new();

0 commit comments

Comments
 (0)