From fc0a0faeb106c58839637a62cd12e7804d93b251 Mon Sep 17 00:00:00 2001 From: tibvdm Date: Thu, 4 Apr 2024 15:37:55 +0200 Subject: [PATCH] full test coverage --- fa-compression/src/lib.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fa-compression/src/lib.rs b/fa-compression/src/lib.rs index 645756c..3a1d9b4 100644 --- a/fa-compression/src/lib.rs +++ b/fa-compression/src/lib.rs @@ -241,4 +241,18 @@ mod tests { fn test_decode_pair_invalid() { CharacterSet::decode_pair(0b11111111); } + + #[test] + fn test_clone() { + let character_set = CharacterSet::Empty; + let character_set_clone = character_set.clone(); + assert_eq!(character_set, character_set_clone); + } + + #[test] + fn test_copy() { + let character_set = CharacterSet::Empty; + let character_set_copy = character_set; + assert_eq!(character_set, character_set_copy); + } }