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
d2bd9e5a
Commit
d2bd9e5a
authored
Oct 18, 2002
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests for COND.
parent
c9164452
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
0 deletions
+76
-0
ansi-tests/cond.lsp
ansi-tests/cond.lsp
+75
-0
ansi-tests/gclload2.lsp
ansi-tests/gclload2.lsp
+1
-0
No files found.
ansi-tests/cond.lsp
0 → 100644
View file @
d2bd9e5a
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Fri Oct 18 07:37:58 2002
;;;; Contains: Tests of COND
(in-package :cl-test)
(deftest cond.1
(cond)
nil)
(deftest cond.2
(cond ('a))
a)
(deftest cond.3
(cond (nil))
nil)
(deftest cond.4
(cond (nil 'a) (nil 'b))
nil)
(deftest cond.5
(cond (nil 'a) ('b))
b)
(deftest cond.6
(cond (t 'a) (t 'b))
a)
(deftest cond.7
(let ((x 0))
(values
(cond ((progn (incf x) nil) 'a) (t 'b) ((incf x) 'c))
x))
b 1)
(deftest cond.8
(let ((x 0))
(values
(cond (nil (incf x) 'a)
(nil (incf x 10) 'b)
(t (incf x 2) 'c)
(t (incf x 100) 'd))
x))
c 2)
(deftest cond.9
(cond ((values 'a 'b 'c)))
a)
(deftest cond.10
(cond (t (values 'a 'b 'c)))
a b c)
(deftest cond.11
(cond
((values nil t) 'a)
(t 'b))
b)
(deftest cond.12
(cond ((values)))
nil)
(deftest cond.13
(cond ((values)) (t 'a))
a)
(deftest cond.14 (cond (t (values))))
ansi-tests/gclload2.lsp
View file @
d2bd9e5a
...
...
@@ -17,6 +17,7 @@
(load "catch.lsp")
(load "constantly.lsp")
(load "complement.lsp")
(load "cond.lsp")
(load "defconstant.lsp")
(load "defparameter.lsp")
(load "defvar.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