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

« back to all changes in this revision

Viewing changes to ansi-tests/fceiling-aux.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:  Wed Aug 20 06:24:45 2003
 
4
;;;; Contains: Tests of FCEILING
 
5
 
 
6
(in-package :cl-test)
 
7
 
 
8
(defun fceiling.1-fn ()
 
9
  (loop for n = (- (random 200000)
 
10
                   100000)
 
11
        for d = (1+ (random 10000))
 
12
        for vals = (multiple-value-list (fceiling n d))
 
13
        for (q r) = vals
 
14
        for n2 = (+ (* q d) r)
 
15
        repeat 100
 
16
        unless (and (eql (length vals) 2)
 
17
                    (floatp q)
 
18
                    (= n n2)
 
19
                    (integerp r)
 
20
                    (< (- d) r 1))
 
21
        collect (list n d q r n2)))