~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to ansi-tests/rest.lsp

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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