Filtering...

termfn-listp-tests

books/std/system/termfn-listp-tests

Included Books

other
(in-package "ACL2")
include-book
(include-book "termfn-listp")
include-book
(include-book "std/testing/assert-bang" :dir :system)
include-book
(include-book "std/testing/must-succeed-star" :dir :system)
other
(assert! (termfn-listp nil (w state)))
other
(assert! (termfn-listp (list '(lambda (x) x) 'len '(lambda (x y z) (binary-* x z)))
    (w state)))
other
(assert! (termfn-listp (list 'not 'atom 'len) (w state)))
other
(assert! (termfn-listp (list 'not 'atom '(lambda (a) (cons a a)) 'len)
    (w state)))
other
(assert! (not (termfn-listp (list "abc" '(lambda (x) x)) (w state))))
other
(assert! (not (termfn-listp (list 'len 'g) (w state))))
other
(must-succeed* (defun f (x) x)
  (assert! (term-listp (list 'f 'not) (w state))))