source: trunk/source/tests/ansi-tests/rest.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: 466 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Apr 19 22:49:14 2003
4;;;; Contains: Tests of REST
5
6(in-package :cl-test)
7
8(compile-and-load "cons-aux.lsp")
9
10(deftest rest.1
11  (rest (list 'a 'b 'c))
12  (b c))
13
14(deftest rest.order.1
15  (let ((i 0))
16    (values (rest (progn (incf i) '(a b))) i))
17  (b) 1)
18
19(deftest rest.error.1
20  (signals-error (rest) program-error)
21  t)
22
23(deftest rest.error.2
24  (signals-error (rest nil nil) program-error)
25  t)
26
27
Note: See TracBrowser for help on using the repository browser.