source: trunk/source/tests/ansi-tests/values-list.lsp @ 8991

Last change on this file since 8991 was 8991, checked in by gz, 11 years ago

Check in the gcl ansi test suite (original, in preparation for making local changes)

File size: 950 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Mon Jan 13 16:53:39 2003
4;;;; Contains: Tests for VALUES-LIST
5
6(in-package :cl-test)
7
8(deftest values-list.error.1
9  (signals-error (values-list) program-error)
10  t)
11
12(deftest values-list.error.2
13  (signals-error (values-list nil nil) program-error)
14  t)
15
16(deftest values-list.error.3
17  (check-type-error #'values-list #'list)
18  nil)
19
20(deftest values-list.error.4
21  (signals-error (values-list '(a b c . d)) type-error)
22  t)
23
24(deftest values-list.1
25  (values-list nil))
26
27(deftest values-list.2
28  (values-list '(1))
29  1)
30
31(deftest values-list.3
32  (values-list '(1 2))
33  1 2)
34
35(deftest values-list.4
36  (values-list '(a b c d e f g h i j))
37  a b c d e f g h i j)
38
39(deftest values-list.5
40  (let ((x (loop for i from 1 to (min 1000
41                                      (1- call-arguments-limit)
42                                      (1- multiple-values-limit))
43                 collect i)))
44    (equalt x
45            (multiple-value-list (values-list x))))
46  t)
47
48 
Note: See TracBrowser for help on using the repository browser.