Skip to content

Commit

Permalink
tests: Add special case for CLISP.
Browse files Browse the repository at this point in the history
It seems to list four! functions in nsymbols package, including the
setf ones.
  • Loading branch information
aartaka committed Aug 14, 2023
1 parent b82f19b commit cdf99e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/tests.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@

(define-test nsymbols-inspection ()
(let ((functions (nsymbols:package-functions :nsymbols :internal)))
(assert-eql 2 (length functions))
(assert-eql
;; CLISP returns: (NSYMBOLS::DESIGNATOR NSYMBOLS::RESULTS
;; NSYMBOLS::|(SETF NSYMBOLS:RESULTS)| NSYMBOLS::|(SETF
;; NSYMBOLS:DESIGNATOR)|)
#+clisp 4
#-clisp 2
(length functions))
(assert-true (member 'nsymbols::designator functions)))
(let ((macros (nsymbols:package-macros :nsymbols)))
(assert-eql 1 (length macros))
Expand Down

0 comments on commit cdf99e5

Please sign in to comment.