Skip to content

Commit

Permalink
feat(test): bdd.is_implied_by
Browse files Browse the repository at this point in the history
  • Loading branch information
AurumTheEnd committed May 17, 2024
1 parent ca3eda7 commit aa8b4b5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/bdd/traits/boolean_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -752,4 +752,15 @@ mod tests {
assert_eq!(evaluated_with_true, evaluated_with_false);
assert!(evaluated_with_true)
}

#[test]
fn test_is_implied_by_unit_ok() {
let f = Bdd::try_from(bool(false)).expect("Should not panic here");
let t = Bdd::try_from(bool(true)).expect("Should not panic here");

assert!(f.is_implied_by(&f));
assert!(t.is_implied_by(&f));
assert!(!f.is_implied_by(&t));
assert!(t.is_implied_by(&t));
}
}

0 comments on commit aa8b4b5

Please sign in to comment.