Make implied-atomic work on AndFilters as well.
original commit: 06f08b9e3041045c9207502307557fcf6767cce7
This commit is contained in:
parent
9313645033
commit
ae09b4f314
|
@ -52,6 +52,8 @@
|
|||
[(_ (Bot:)) #t]
|
||||
[((OrFilter: fs) f2)
|
||||
(memf (lambda (f) (filter-equal? f f2)) fs)]
|
||||
[(f1 (AndFilter: fs))
|
||||
(memf (lambda (f) (filter-equal? f f1)) fs)]
|
||||
[((TypeFilter: t1 p1 i1)
|
||||
(TypeFilter: t2 p1 i2))
|
||||
(and (name-ref=? i1 i2)
|
||||
|
|
|
@ -103,6 +103,9 @@
|
|||
(check implied-atomic?
|
||||
(-or (-filter -Symbol 1) (-filter -Symbol #'x))
|
||||
(-filter -Symbol #'x))
|
||||
(check implied-atomic?
|
||||
(-filter -Symbol #'x)
|
||||
(-and (-filter -Symbol 1) (-filter -Symbol #'x)))
|
||||
)
|
||||
|
||||
(test-suite "Implication"
|
||||
|
|
Loading…
Reference in New Issue
Block a user