Package test_suite :: Package unit_tests :: Module test_float
[hide private]
[frames] | no frames]

Module test_float

source code

Classes [hide private]
  Test_float
Unit tests for the functions of the 'float' module.
Functions [hide private]
 
make_dict_by_id(elements)
Convert the list into a dictionary of pointer:value pairs.
source code
 
winnow_dist_to_list_by_id(dict, exclude)
Generate a list of values in dict excluding the values given.
source code
Variables [hide private]
  FLOAT_EPSILON = 4.94065645841e-324
  NEG_FLOAT_EPSILON = -4.94065645841e-324
  FLOAT_NORMAL = 1000000.0
  NEG_FLOAT_NORMAL = -1000000.0
  ZERO = 0.0
  NEG_ZERO = -0.0
  CLASS_NEG_DENORMAL = 32
  CLASS_NEG_INF = 2
  CLASS_NEG_NORMAL = 8
  CLASS_NEG_ZERO = 512
  CLASS_POS_DENORMAL = 16
  CLASS_POS_INF = 1
  CLASS_POS_NORMAL = 4
  CLASS_POS_ZERO = 256
  CLASS_QUIET_NAN = 64
  CLASS_SIGNAL_NAN = 128
  EXPONENT_ALL_ONES_BYTE_0 = 240
  EXPONENT_ALL_ONES_BYTE_1 = 127
  EXPONENT_NIBBLE_MASK = 240
  EXPONENT_SIGN_MASK = 127
  INF_BYTES = [0, 0, 0, 0, 0, 0, 240, 127]
  MANTISSA_NIBBLE_MASK = 15
  NAN_BYTES = [0, 0, 0, 0, 0, 0, 248, 127]
  NegEpsilonDenorm = -4.94065645841e-324
  NegEpsilonNorm = -2.22507385851e-308
  NegInf = -inf
  NegMin = -1.79769313486e+308
  NegNaN = nan
  NegNaN_A = nan
  NegNaN_B = nan
  NegNaN_C = nan
  NegZero = -0.0
  PosEpsilonDenorm = 4.94065645841e-324
  PosEpsilonNorm = 2.22507385851e-308
  PosInf = inf
  PosMax = 1.79769313486e+308
  PosNaN = nan
  PosNaN_A = nan
  PosNaN_B = nan
  PosNaN_C = nan
  PosZero = 0.0
  SIGNBIT = 128
  __package__ = 'test_suite.unit_tests'
  nan = nan
  neg_inf = -inf
  pos_inf = inf

Imports: TestCase, copy, areUnordered, bitpatternToFloat, bitpatternToInt, copySign, floatAsByteArray, floatToBinaryString, getExponentBytes, getFloatClass, getMantissaBytes, getSignBit, isDenormalised, isExpAllOnes, isExpAllZeros, isFinite, isInf, isMantissaAllZeros, isNaN, isNegInf, isNegative, isPosInf, isPositive, isZero, pack, packBytesAsPyFloat, sys, unpack