source: trunk/source/tests/ansi-tests/atom.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: 611 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Apr 19 21:28:09 2003
4;;;; Contains: Tests of ATOM
5
6(in-package :cl-test)
7
8; (compile-and-load "cons-aux.lsp")
9
10(deftest atom.1
11  (loop for x in *universe*
12        unless (if (atom x) (not (consp x)) (consp x))
13        collect x)
14  nil)
15
16(deftest atom.2
17  (macrolet ((%m (z) z)) (atom (expand-in-current-env (%m 0))))
18  t)
19
20(deftest atom.order.1
21  (let ((i 0))
22    (values (atom (progn (incf i) '(a b))) i))
23  nil 1)
24
25(deftest atom.error.1
26  (signals-error (atom) program-error)
27  t)
28
29(deftest atom.error.2
30  (signals-error (atom 'a 'b) program-error)
31  t)
Note: See TracBrowser for help on using the repository browser.