Filtering...

irecursivep-tests

books/std/system/irecursivep-tests

Included Books

other
(in-package "ACL2")
include-book
(include-book "irecursivep")
include-book
(include-book "std/testing/assert-equal" :dir :system)
include-book
(include-book "std/testing/must-succeed-star" :dir :system)
other
(assert-equal (irecursivep 'cons (w state)) nil)
other
(assert-equal (irecursivep 'len (w state)) '(len))
other
(assert-equal (irecursivep 'pseudo-termp (w state))
  '(pseudo-termp pseudo-term-listp))
other
(must-succeed* (defun f
    (x)
    (if (consp x)
      (f (car x))
      0))
  (assert-equal (irecursivep 'f (w state)) '(f)))