Filtering...

check-nary-lambda-call-tests

books/std/system/check-nary-lambda-call-tests

Included Books

other
(in-package "ACL2")
include-book
(include-book "check-nary-lambda-call")
include-book
(include-book "std/testing/assert-equal" :dir :system)
other
(assert-equal (mv-list 4 (check-nary-lambda-call 'x 1))
  '(nil nil nil nil))
other
(assert-equal (mv-list 4 (check-nary-lambda-call 'x 6))
  '(nil nil nil nil))
other
(assert-equal (mv-list 4 (check-nary-lambda-call ''7/5 3))
  '(nil nil nil nil))
other
(assert-equal (mv-list 4 (check-nary-lambda-call ''7/5 0))
  '(nil nil nil nil))
other
(assert-equal (mv-list 4 (check-nary-lambda-call '(h a b) 1))
  '(nil nil nil nil))
other
(assert-equal (mv-list 4 (check-nary-lambda-call '(h a b) 2))
  '(nil nil nil nil))
other
(assert-equal (mv-list 4
    (check-nary-lambda-call '((lambda (x y) (cons x y)) a b) 2))
  '(t (x y) (cons x y) (a b)))
other
(assert-equal (mv-list 4
    (check-nary-lambda-call '((lambda (x y) (cons x y)) a b) 1))
  '(nil nil nil nil))
other
(assert-equal (mv-list 4 (check-nary-lambda-call '((lambda nil '0)) 0))
  '(t nil '0 nil))
other
(assert-equal (mv-list 4 (check-nary-lambda-call '((lambda nil '0)) 3))
  '(nil nil nil nil))
other
(assert-equal (mv-list 4 (check-nary-lambda-call '((lambda (u) u) uu) 1))
  '(t (u) u (uu)))
other
(assert-equal (mv-list 4 (check-nary-lambda-call '((lambda (u) u) uu) 2))
  '(nil nil nil nil))