test(ex05): add more tests for double negation
This commit is contained in:
parent
b5e48c41c4
commit
4abcd4c832
|
@ -13,9 +13,12 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn double_neg() {
|
||||
assert_eq!(negation_normal_form("A!!B&"), "AB&");
|
||||
assert_eq!(negation_normal_form("A!!B!!&"), "AB&");
|
||||
assert_eq!(negation_normal_form("A!!B!&"), "AB!&");
|
||||
assert_eq!(negation_normal_form("A!!A&"), "AA&");
|
||||
assert_eq!(negation_normal_form("B!!B!!&"), "BB&");
|
||||
assert_eq!(negation_normal_form("C!!C!&"), "CC!&");
|
||||
assert_eq!(negation_normal_form("D!!D&!!!!"), "DD&");
|
||||
assert_eq!(negation_normal_form("E!!E!!!!&!!"), "EE&");
|
||||
assert_eq!(negation_normal_form("F!!F!&!!!!!!!!"), "FF!&");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in New Issue