Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ansi-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michał Herda
ansi-test
Commits
20de4186
Commit
20de4186
authored
22 years ago
by
pfdietz
Browse files
Options
Downloads
Patches
Plain Diff
Added tests for LAMBDA-LIST-KEYWORDS.
parent
1ce355be
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansi-tests/gclload2.lsp
+1
-0
1 addition, 0 deletions
ansi-tests/gclload2.lsp
ansi-tests/lambda-list-keywords.lsp
+42
-0
42 additions, 0 deletions
ansi-tests/lambda-list-keywords.lsp
with
43 additions
and
0 deletions
ansi-tests/gclload2.lsp
+
1
−
0
View file @
20de4186
...
...
@@ -10,6 +10,7 @@
(load "complement.lsp")
(load "function.lsp")
(load "functionp.lsp")
(load "lambda-list-keywords.lsp")
;;; Tests of conses
...
...
This diff is collapsed.
Click to expand it.
ansi-tests/lambda-list-keywords.lsp
0 → 100644
+
42
−
0
View file @
20de4186
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Mon Oct 7 22:11:31 2002
;;;; Contains: Tests for LAMBDA-LIST-KEYWORDS
(in-package :cl-test)
;;; The variable is bound
(deftest lambda-list-keywords.1
(not (boundp 'lambda-list-keywords))
nil)
;;; The variable is a constant
(deftest lambda-list-keywords.2
(not (constantp 'lambda-list-keywords))
nil)
;;; The standard keywords are present in the list
(deftest lambda-list-keywords.3
(and (consp lambda-list-keywords)
(null (set-difference '(&allow-other-keys
&aux &body &environment
&key &optional &rest &whole)
lambda-list-keywords)))
t)
;;; No lambda list keywords are in the keyword package
(deftest lambda-list-keywords.4
(some #'keywordp lambda-list-keywords)
nil)
;;; Every keyword starts with an ampersand
(deftest lambda-list-keywords.5
(notevery #'(lambda (sym)
(let ((name (symbol-name sym)))
(and (> (length name) 0)
(eql (aref name 0) #\&))))
lambda-list-keywords)
nil)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment