Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Karsten Poeck
ansi-test
Commits
02122403
Commit
02122403
authored
Oct 12, 2002
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More tests (LET, PROGV).
parent
5915d219
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
0 deletions
+80
-0
ansi-tests/gclload2.lsp
ansi-tests/gclload2.lsp
+2
-0
ansi-tests/let.lsp
ansi-tests/let.lsp
+9
-0
ansi-tests/progv.lsp
ansi-tests/progv.lsp
+69
-0
No files found.
ansi-tests/gclload2.lsp
View file @
02122403
...
...
@@ -27,6 +27,8 @@
(load "lambda-parameters-limit.lsp")
(load "let.lsp")
(load "macrolet.lsp")
(load "progv.lsp")
;;; Tests of conses
...
...
ansi-tests/let.lsp
View file @
02122403
...
...
@@ -65,6 +65,15 @@
x))
(1 nil 1))
(deftest let.12
(let ((x 0))
(values
(let ((x 20)
(x (1+ x)))
x)
x))
1 0)
(deftest let.13
(flet ((%f () (declare (special x))
(if (boundp 'x) x 10)))
...
...
ansi-tests/progv.lsp
0 → 100644
View file @
02122403
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Sat Oct 12 10:00:50 2002
;;;; Contains: Tests for PROGV
(in-package :cl-test)
(deftest progv.1
(progv () () t)
t)
(deftest progv.2
(progv '(x) '(1) (not (not (boundp 'x))))
t)
(deftest progv.3
(progv '(x) '(1) (symbol-value 'x))
1)
(deftest progv.4
(progv '(x) '(1)
(locally (declare (special x))
x))
1)
(deftest progv.5
(let ((x 0))
(progv '(x) '(1) x))
0)
(deftest progv.6
(let ((x 0))
(declare (special x))
(progv '(x) ()
(boundp 'x)))
nil)
(deftest progv.7
(progv '(x y z) '(1 2 3)
(locally (declare (special x y z))
(values x y z)))
1 2 3)
(deftest progv.8
(progv '(x y z) '(1 2 3 4 5 6 7 8)
(locally (declare (special x y z))
(values x y z)))
1 2 3)
(deftest progv.9
(let ((x 0))
(declare (special x))
(progv '(x y z w) '(1)
(values (not (not (boundp 'x)))
(boundp 'y)
(boundp 'z)
(boundp 'w))))
t nil nil nil)
;; forms are evaluated in order
(deftest progv.10
(let ((x 0) (y 0) (c 0))
(progv
(progn (setf x (incf c)) nil)
(progn (setf y (incf c)) nil)
(values x y c)))
1 2 2)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment