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

« back to all changes in this revision

Viewing changes to ansi-tests/random-state-p.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 Sep  6 17:50:04 2003
 
4
;;;; Contains: Tests of RANDOM-STATE-P
 
5
 
 
6
(in-package :cl-test)
 
7
 
 
8
(deftest random-state-p.error.1
 
9
  (signals-error (random-state-p) program-error)
 
10
  t)
 
11
 
 
12
(deftest random-state-p.error.2
 
13
  (signals-error (random-state-p nil nil) program-error)
 
14
  t)
 
15
 
 
16
(deftest random-state-p.1
 
17
  (loop for x in *universe*
 
18
        when (if (typep x 'random-state)
 
19
                 (not (random-state-p x))
 
20
               (random-state-p x))
 
21
        collect x)
 
22
  nil)
 
23
 
 
24
(deftest random-state-p.2
 
25
  (notnot-mv (random-state-p *random-state*))
 
26
  t)
 
27
 
 
28
(deftest random-state-p.3
 
29
  (notnot-mv (random-state-p (make-random-state)))
 
30
  t)