source: trunk/source/tests/ansi-tests/print-ratios.lsp @ 8991

Last change on this file since 8991 was 8991, checked in by gz, 12 years ago

Check in the gcl ansi test suite (original, in preparation for making local changes)

File size: 461 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Mon Mar  1 22:03:58 2004
4;;;; Contains: Tests for printing ratios
5
6(in-package :cl-test)
7
8(compile-and-load "printer-aux.lsp")
9
10(deftest print.ratios.random
11  (loop for i from 1 to 1000
12        for numbits = (1+ (random 40))
13        for bound = (ash 1 numbits)
14        for num = (- (random (+ bound bound)) bound)
15        for denom = (1+ (random bound))
16        for r = (/ num denom)
17        nconc (randomly-check-readability r))
18  nil)
19
Note: See TracBrowser for help on using the repository browser.