should-test icon indicating copy to clipboard operation
should-test copied to clipboard

`deftest` on symbols from the parent packages

Open jcguu95 opened this issue 1 year ago • 0 comments

(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.

jcguu95 avatar Apr 30 '24 01:04 jcguu95