Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
danvleju-rdx committed Dec 20, 2024
1 parent 5732dbc commit ce09c60
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ impl PartialEq for SecurityShieldBuilder {
}
}

impl Eq for SecurityShieldBuilder {}

impl Clone for SecurityShieldBuilder {
fn clone(&self) -> Self {
Self {
Expand Down Expand Up @@ -736,6 +738,20 @@ mod tests {
assert_ne!(SUT::sample(), SUT::sample_other());
}

#[test]
fn hash() {
assert_eq!(
radix_rust::hashset![
SUT::sample(),
SUT::sample(),
SUT::sample_other(),
SUT::sample_other(),
]
.len(),
2
)
}

#[test]
fn clone() {
assert_eq!(SUT::sample(), SUT::sample().clone());
Expand Down

0 comments on commit ce09c60

Please sign in to comment.