Skip to content

Commit 8df47c0

Browse files
committed
Improve test verifying it succeeds in SBCL and ECL
Be more careful about packages
1 parent 560e95e commit 8df47c0

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

t/compiler-inline.lisp

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,13 @@
22
(unless (ignore-errors (asdf:load-system :fset))
33
(ql:quickload :fset))
44

5-
(in-package :fset-user)
6-
(defun foo (x)
7-
(labels ((bar (x)
8-
(cond ((null x) nil)
9-
((eq (car x) '&rest) (tail (cadr x)))
10-
(t (cons (car x) (bar (cdr x))))))
11-
(tail (x)
12-
(list 'local-tail x)))
13-
(bar x)))
14-
(compile 'foo)
5+
(load
6+
(compile-file
7+
(asdf:system-relative-pathname :abcl "t/eg/inline-labels.lisp")))
158

169
(prove:plan 1)
1710
(prove:is
18-
(foo '(a &rest b))
19-
'(a local-tail b))
11+
(fset-user::foo '(a &rest b))
12+
'(a fset-user::local-tail b))
2013
(prove:finalize)
2114

t/eg/inline-labels.lisp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
(in-package :fset-user)
2+
(defun foo (x)
3+
(labels ((bar (x)
4+
(cond ((null x) nil)
5+
((eq (car x) '&rest) (tail (cadr x)))
6+
(t (cons (car x) (bar (cdr x))))))
7+
(tail (x)
8+
(list 'local-tail x)))
9+
(bar x)))

0 commit comments

Comments
 (0)