Filtering...

conjoin-equalities-tests

books/std/system/conjoin-equalities-tests

Included Books

other
(in-package "ACL2")
include-book
(include-book "conjoin-equalities")
include-book
(include-book "std/testing/assert-equal" :dir :system)
other
(assert-equal (conjoin-equalities nil nil) *t*)
other
(assert-equal (conjoin-equalities (list 'lhs) (list 'rhs))
  '(equal lhs rhs))
other
(assert-equal (conjoin-equalities (list 'var ''#\c '(f a b))
    (list '((lambda (x) (cons x x)) '2)
      'xb
      '(h (j '3) (k x y z))))
  '(if (equal var ((lambda (x) (cons x x)) '2))
    (if (equal '#\c xb)
      (equal (f a b) (h (j '3) (k x y z)))
      'nil)
    'nil))