Filtering...

check-and-call-tests

books/std/system/check-and-call-tests

Included Books

other
(in-package "ACL2")
include-book
(include-book "check-and-call")
include-book
(include-book "std/testing/assert-equal" :dir :system)
other
(assert-equal (mv-list 3 (check-and-call 'x))
  '(nil nil nil))
other
(assert-equal (mv-list 3 (check-and-call ''4))
  '(nil nil nil))
other
(assert-equal (mv-list 3 (check-and-call ''t))
  '(nil nil nil))
other
(assert-equal (mv-list 3 (check-and-call ''nill))
  '(nil nil nil))
other
(assert-equal (mv-list 3 (check-and-call '(f x y)))
  '(nil nil nil))
other
(assert-equal (mv-list 3 (check-and-call '((lambda (x) (cons x x)) a)))
  '(nil nil nil))
other
(assert-equal (mv-list 3
    (check-and-call '(if a
        'nil
        b)))
  '(nil nil nil))
other
(assert-equal (mv-list 3
    (check-and-call '(if a
        b
        'nil)))
  '(t a b))
other
(assert-equal (mv-list 3
    (check-and-call '(if (if a
          b
          c)
        d
        'nil)))
  '(t (if a
      b
      c)
    d))