should-test
should-test copied to clipboard
`deftest` on symbols from the parent packages
(deftest x [..]) registers a test in the symbol x. However, if the symbol x in the current package Y is obtained (by use) from another package X, then running #'test against the current package Y doesn't test x. Is this intended?
A concrete example is ht->pairs in rutils/pair-test. That symbol was originally from rtl, so (test :package (find-package "rutils.test")) skips the test ht->pairs.