Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ansi-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Karsten Poeck
ansi-test
Commits
50ac499a
Commit
50ac499a
authored
Oct 07, 2002
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests for CONSTANTLY and COMPLEMENT.
parent
e63bcb06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
ansi-tests/complement.lsp
ansi-tests/complement.lsp
+28
-0
ansi-tests/constantly.lsp
ansi-tests/constantly.lsp
+14
-0
ansi-tests/gclload2.lsp
ansi-tests/gclload2.lsp
+5
-0
No files found.
ansi-tests/complement.lsp
0 → 100644
View file @
50ac499a
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Sun Oct 6 20:04:33 2002
;;;; Contains: Tests for COMPLEMENT
(in-package :cl-test)
(deftest complement.1
(funcall (cl::complement #'identity) nil)
t)
(deftest complement.2
(funcall (cl::complement #'identity) t)
nil)
(deftest complement.3
(every #'(lambda (x) (eql (funcall (cl::complement #'not) x)
(not (not x))))
*universe*)
t)
(deftest complement.4
(let ((x '(#\b)))
(loop for i from 2 to (min 256 (1- call-arguments-limit))
always (progn
(push #\a x)
(apply (cl::complement #'char=) x))))
t)
ansi-tests/constantly.lsp
0 → 100644
View file @
50ac499a
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Sun Oct 6 19:47:16 2002
;;;; Contains: Tests for CONSTANTLY
(in-package :cl-test)
(deftest constantly.1
(let ((fn (cl::constantly 10))
(x nil))
(loop for i from 0 to (min 256 (1- call-arguments-limit))
always (prog1 (eql (apply fn x) 10)
(push 'a x))))
t)
ansi-tests/gclload2.lsp
View file @
50ac499a
...
...
@@ -3,6 +3,11 @@
;;; Tests of symbols
(load "cl-symbols.lsp")
;;; Tests of data and control flow
(load "constantly.lsp")
(load "complement.lsp")
;;; Tests of conses
(load "cons-test-01.lsp")
...
...
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