Module: common-dylan-test-suite Synopsis: Common Dylan library test suite Author: Andy Armstrong Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND /// Class test cases define locators-protocol class-test () //---*** Fill this in... end class-test ; define common-extensions class-test () //---*** Fill this in... end class-test ; define common-extensions class-test () //---*** Fill this in... end class-test ; define common-extensions class-test () //---*** Fill this in... end class-test ; /// NOTE: These rather strange expressions are used to prevent the compiler from /// attempting any compile-time optimizations of the original expressions. define common-extensions class-test () check-condition("floor/(1, 0) signals ", , begin let x :: = 0; for (i from 0 below 1) x := x + 1; x := floor/(x, 0); end end); check-condition("1.0s0 / 0.0s0 signals ", , begin let x :: = 0.0s0; for (i from 0 below 1) x := x + 1.0s0; x := x / 0.0s0; end end); check-condition("1.0d0 / 0.0d0 signals ", , begin let x :: = 0.0d0; for (i from 0 below 1) x := x + 1.0d0; x := x / 0.0d0; end end); end class-test ; define common-extensions class-test () check-condition("$maximum-integer + 1 signals ", , begin let x :: = $maximum-integer - 1; for (i from 0 below 2) x := x + 1; end end); check-condition("$minimum-integer - 1 signals ", , begin let x :: = $minimum-integer + 1; for (i from 0 below 2) x := x - 1; end end); check-condition("1.0s20 * 1.0s20 signals ", , begin let x :: = 1.0s0; for (i from 0 below 2) x := x * 1.0s20; end; x end); check-condition("1.0d160 * 1.0d160 signals ", , begin let x :: = 1.0d0; for (i from 0 below 2) x := x * 1.0d160; end; x end); end class-test ; define common-extensions class-test () check-condition("1.0s-20 * 1.0s-20 signals ", , begin let x :: = 1.0s0; for (i from 0 below 2) x := x * 1.0s-20; end; x end); check-condition("1.0d-160 * 1.0d-160 signals ", , begin let x :: = 1.0d0; for (i from 0 below 2) x := x * 1.0d-160; end; x end); end class-test ; define common-extensions class-test () //---*** Fill this in... end class-test ; /// simple-random classes define simple-random class-test () //---*** Fill this in... end class-test ; /// simple-profiling classes define common-extensions class-test () //---*** Fill this in... end class-test ;