X-Git-Url: https://code.consxy.com/gitweb/?a=blobdiff_plain;f=src%2Ftest%2Fmain.lisp;h=9db1bc74d7c5ee3441785c8ccddac5e66b5fcdf9;hb=35b42c73638093521b3b08c8ea31e6d8ca71146e;hp=9bae683d13ec013175a444b8b52120f5def15fed;hpb=0d2cc286fe5fb8e85795d261620e422442ce5ef9;p=sheep diff --git a/src/test/main.lisp b/src/test/main.lisp index 9bae683..9db1bc7 100644 --- a/src/test/main.lisp +++ b/src/test/main.lisp @@ -1,4 +1,5 @@ -(in-package #:docgen-test) +; Copyright 2022 Frank Duncan (frank@consxy.com) under AGPL3. See distributed LICENSE.txt. +(in-package #:sheep-test) (defvar *tests* nil) @@ -33,10 +34,10 @@ (handler-case (progn (load ,source) - (string= (slurp-file ,target) (docgen:export-package ,pkg))) - (docgen:validation-failure (vf) + (string= (slurp-file ,target) (sheep:export-package ,pkg))) + (sheep:validation-failure (vf) (format t "Validation failure gotten: ~A~%" - (funcall (symbol-function (find-symbol "VALIDATION-FAILURE-MSG" :docgen)) vf))))))) + (funcall (symbol-function (find-symbol "VALIDATION-FAILURE-MSG" :sheep)) vf))))))) (defmacro deffailuretest (pkg source expected) `(deftest @@ -45,7 +46,7 @@ (progn (load ,source) (let - ((result (docgen:validate-package ,pkg))) + ((result (sheep:validate-package ,pkg))) (or (equal ,expected result) (format t " Got error:~%~S~% but expected~%~S~%" result ,expected))))))) @@ -57,13 +58,13 @@ (handler-case (progn (funcall - (symbol-function (find-symbol "INTERNAL-DOC->AST" :docgen-func)) + (symbol-function (find-symbol "INTERNAL-DOC->AST" :sheep-func)) 'unused ,doc) nil) - (docgen:validation-failure (vf) + (sheep:validation-failure (vf) (let - ((result (funcall (symbol-function (find-symbol "VALIDATION-FAILURE-MSG" :docgen)) vf))) + ((result (funcall (symbol-function (find-symbol "VALIDATION-FAILURE-MSG" :sheep)) vf))) (or (string= ,expected result) (format t " Got error:~%~S~% but expected~%~S~%" result ,expected)))))))) @@ -75,13 +76,13 @@ (handler-case (progn (funcall - (symbol-function (find-symbol "INTERNAL-DOC->AST" :docgen-var)) + (symbol-function (find-symbol "INTERNAL-DOC->AST" :sheep-var)) '*unused* ,doc) nil) - (docgen:validation-failure (vf) + (sheep:validation-failure (vf) (let - ((result (funcall (symbol-function (find-symbol "VALIDATION-FAILURE-MSG" :docgen)) vf))) + ((result (funcall (symbol-function (find-symbol "VALIDATION-FAILURE-MSG" :sheep)) vf))) (or (string= ,expected result) (format t " Got error:~%~S~% but expected~%~S~%" result ,expected))))))))