Skip to content

Commit

Permalink
Add missing feature debug tag on hidden element in linked list
Browse files Browse the repository at this point in the history
  • Loading branch information
kokosha authored and hasenbanck committed Dec 20, 2024
1 parent 6037aa1 commit 137a680
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions korangar/src/interface/linked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ mod test {
let element = LinkedElement::new();

assert!(!element.is_linked());
#[cfg(feature = "debug")]
assert!(!element.is_hidden());
}

Expand All @@ -73,6 +74,7 @@ mod test {
element.link(&parent);

assert!(element.is_linked());
#[cfg(feature = "debug")]
assert!(!element.is_hidden());
assert!(element.is_linked_to(&parent));
}
Expand All @@ -86,11 +88,13 @@ mod test {
element.link(&parent);

assert!(element.is_linked());
#[cfg(feature = "debug")]
assert!(!element.is_hidden());
assert!(!element.is_linked_to(&stranger));
}

#[test]
#[cfg(feature = "debug")]
fn links_can_be_hidden() {
let element = LinkedElement::new();

Expand Down

0 comments on commit 137a680

Please sign in to comment.