From 5e587b9d69c5efb9aa24e93bc9448fbafa7ec622 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 8 Jul 2019 14:41:20 +0100 Subject: [PATCH] add test comment --- src/ieee754/fpcommon/test/case_gen.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/ieee754/fpcommon/test/case_gen.py b/src/ieee754/fpcommon/test/case_gen.py index 1e81f341..2c422967 100644 --- a/src/ieee754/fpcommon/test/case_gen.py +++ b/src/ieee754/fpcommon/test/case_gen.py @@ -1,3 +1,22 @@ +"""FP Unit Test Infrastructure + +allows testing of: + +* random range against random range +* +/- 0, +/- inf, +/- NaN permutations, all tested against all permutations +* all of those permutations (+/- 0/inf/NaN) against the following: +- nearly zero (random variations) +- minimum non-zero exponent (random variations) +- nearly infinite (random variations) +- random versions of NaN (noncanonical NaN) +- random numbers (at the full range) + +inversion of permutations also done, where appropriate (A,B and B,A) + +single-operand version also supported + +""" + from ieee754.fpcommon.test.fpmux import runfp, repeat, pipe_cornercases_repeat from random import randint -- 2.30.2