Skip to content

Commit

Permalink
additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 25, 2023
1 parent cadcf87 commit 6f89842
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/clone.rs
Expand Up @@ -40,3 +40,10 @@ fn map_can_be_cloned() -> Result<()> {
assert_eq!(42, *m.clone().get(&0).unwrap());
Ok(())
}

#[test]
fn empty_map_can_be_cloned() -> Result<()> {
let m: Map<u8, u8, 16> = Map::new();
assert!(m.clone().is_empty());
Ok(())
}

0 comments on commit 6f89842

Please sign in to comment.