Filtering...

make-mv-nth-calls-tests

books/std/system/make-mv-nth-calls-tests

Included Books

other
(in-package "ACL2")
include-book
(include-book "make-mv-nth-calls")
include-book
(include-book "std/testing/assert-equal" :dir :system)
other
(assert-equal (make-mv-nth-calls 'x 0) nil)
other
(assert-equal (make-mv-nth-calls ''1 0) nil)
other
(assert-equal (make-mv-nth-calls '(f a b) 0) nil)
other
(assert-equal (make-mv-nth-calls '((lambda (x) (cons x x)) y) 0)
  nil)
other
(assert-equal (make-mv-nth-calls 'x 4)
  `((mv-nth '0 x) (mv-nth '1 x) (mv-nth '2 x) (mv-nth '3 x)))
other
(assert-equal (make-mv-nth-calls ''1 4)
  `((mv-nth '0 '1) (mv-nth '1 '1)
    (mv-nth '2 '1)
    (mv-nth '3 '1)))
other
(assert-equal (make-mv-nth-calls '(f a b) 4)
  `((mv-nth '0 (f a b)) (mv-nth '1 (f a b))
    (mv-nth '2 (f a b))
    (mv-nth '3 (f a b))))
other
(assert-equal (make-mv-nth-calls '((lambda (x) (cons x x)) y) 4)
  `((mv-nth '0 ((lambda (x) (cons x x)) y)) (mv-nth '1 ((lambda (x) (cons x x)) y))
    (mv-nth '2 ((lambda (x) (cons x x)) y))
    (mv-nth '3 ((lambda (x) (cons x x)) y))))