Skip to content

Commit 2d16ba9

Browse files
committed
implement test
1 parent e1da831 commit 2d16ba9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/rule/non_empty/non_empty_set.rs

+7
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ mod test {
8080
use crate::rule::NonEmptyHashSet;
8181
use std::collections::HashSet;
8282

83+
#[test]
84+
fn test_err() -> anyhow::Result<()> {
85+
let set_result = NonEmptyHashSet::new(HashSet::<u8>::new());
86+
assert!(set_result.is_err());
87+
Ok(())
88+
}
89+
8390
#[test]
8491
fn test_len() -> anyhow::Result<()> {
8592
let mut set = HashSet::new();

0 commit comments

Comments
 (0)