Filtering...

ubody-tests

books/std/system/ubody-tests

Included Books

other
(in-package "ACL2")
include-book
(include-book "ubody")
include-book
(include-book "std/testing/assert-equal" :dir :system)
include-book
(include-book "std/testing/must-succeed-star" :dir :system)
other
(assert-equal (ubody 'atom (w state)) '(not (consp x)))
other
(must-succeed* (defun f (x) x)
  (assert-equal (ubody 'f (w state)) 'x))
other
(must-succeed* (defun p (x) (and (natp x) (natp 3)))
  (assert-equal (body 'p t (w state)) '(natp x))
  (assert-equal (ubody 'p (w state))
    '(if (natp x)
      (natp '3)
      'nil)))
other
(assert-equal (ubody '(lambda (x y) (cons x (h '3))) (w state))
  '(cons x (h '3)))
other
(assert-equal (ubody '(lambda (a) (h a '"abc")) (w state))
  '(h a '"abc"))