Included Books
other
(in-package "ACL2")
include-book
(include-book "../defval")
include-book
(include-book "std/testing/assert-bang" :dir :system)
other
(defxdoc test-par1 :parents (defval))
other
(defxdoc test-par2 :parents (defval))
other
(defval *parent-test1* :parents (test-par1) :short "test1 short" :long "<p>test1 long</p>" :showdef t :showval t (make-list 10))
local
(local (set-default-parents (test-par2)))
other
(assert! (b* ((topic (find-topic '*parent-test1* (get-xdoc-table (w state)))) (parents (cdr (assoc :parents topic)))) (equal parents '(test-par1))))
other
(assert! (b* ((topic (find-topic '*parent-test2* (get-xdoc-table (w state)))) (parents (cdr (assoc :parents topic)))) (equal parents '(undocumented))))
other
(assert! (b* ((topic (find-topic '*parent-test3* (get-xdoc-table (w state)))) (parents (cdr (assoc :parents topic)))) (equal parents '(test-par2))))
other
(defval *test-kwd* :foo)
other
(assert! (equal *test-kwd* :foo))
other
(defval *test-int* 3)
other
(assert! (equal *test-int* 3))
other
(defval *test-kwd2* :foo :parents (parent-test1) :short "Blah")
other
(defval *test-kwd3* :parents (parent-test1) :foo :short "Blah")
other
(defval *test-kwd4* :parents (parent-test1) :short "Blah" :foo)
other
(assert! (equal *test-kwd2* :foo))
other
(assert! (equal *test-kwd3* :foo))
other
(assert! (equal *test-kwd4* :foo))
other
(defval *test-kwd5* :short)
other
(assert! (equal *test-kwd5* :short))
other
(defval *event-test1* 17 /// (defthm int-of-event-test1 (integerp *event-test1*) :rule-classes nil))
other
(defval *event-test2* :foo /// (defthm keywordp-event-test2 (keywordp *event-test2*) :rule-classes nil))
other
(assert! (equal *test-kwd5* :short))
fibfunction
(defun fib (n) (declare (xargs :guard (natp n))) (cond ((zp n) 1) ((eql n 1) 1) (t (+ (fib (- n 1)) (fib (- n 2))))))