Skip to content

Commit

Permalink
tests/tests: Guard for nsymbols/star loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
aartaka committed Nov 23, 2023
1 parent ae85a12 commit b3a5ae0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/tests.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

(in-package #:nsymbols/tests)

(defvar *nsymbols-star-loaded*
(fboundp (find-symbol "PACKAGE-FUNCTIONS*" :nsymbols)))

(define-test cl-inspection ()
(assert-eql 977 (length (nsymbols:package-symbols :cl :visibility :external)))
(let ((structures (nsymbols:package-structures :cl :external)))
Expand All @@ -19,8 +22,11 @@
;; CLISP returns: (NSYMBOLS::DESIGNATOR NSYMBOLS::RESULTS
;; NSYMBOLS::|(SETF NSYMBOLS:RESULTS)| NSYMBOLS::|(SETF
;; NSYMBOLS:DESIGNATOR)|)
#+clisp 4
#-clisp 2
(if *nsymbols-star-loaded*
#+clisp 10
#-clisp 8
#+clisp 4
#-clisp 2)
(length functions))
(assert-true (member 'nsymbols::designator functions)))
(let ((macros (nsymbols:package-macros :nsymbols)))
Expand Down

0 comments on commit b3a5ae0

Please sign in to comment.