micropython/tests/float
Damien George 27465e6b24 tests/basics: Add tests for equality between bool and int/float/complex.
False/True should be implicitly converted to 0/1 when compared with numeric
types.
2020-02-11 11:06:17 +11:00
..
array_construct.py tests: Rename "array" module to "uarray". 2019-10-22 19:16:54 +11:00
builtin_float_abs.py py/objfloat: Fix abs(-0.0) so it returns 0.0. 2018-09-27 15:21:25 +10:00
builtin_float_hash.py tests: Add some tests for bigint hash, float hash and float parsing. 2018-05-21 13:05:40 +10:00
builtin_float_minmax.py tests/float/builtin_float_minmax: PEP8 fixes. 2017-06-08 17:23:22 +03:00
builtin_float_pow.py py/objfloat: Fix case of raising 0 to -infinity. 2018-02-08 14:35:43 +11:00
builtin_float_round.py tests/float: Add tests for round() of inf, nan and large number. 2017-03-24 11:00:45 +11:00
builtin_float_round_intbig.py tests/float: Add tests for round() of inf, nan and large number. 2017-03-24 11:00:45 +11:00
bytearray_construct.py tests: Rename "array" module to "uarray". 2019-10-22 19:16:54 +11:00
bytes_construct.py tests: Rename "array" module to "uarray". 2019-10-22 19:16:54 +11:00
cmath_fun.py tests/float/cmath_fun.py: Fix truncation of small real part of complex. 2018-09-04 17:02:36 +10:00
cmath_fun_special.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
complex1.py tests/basics: Add tests for equality between bool and int/float/complex. 2020-02-11 11:06:17 +11:00
complex1_intbig.py tests/float/complex1: Split out intbig test. 2017-03-06 15:46:01 +01:00
float1.py tests/basics: Add tests for equality between bool and int/float/complex. 2020-02-11 11:06:17 +11:00
float2int_doubleprec_intbig.py tests/float2int*: Suffix with _intbig, don't run on any other int type. 2017-03-06 16:30:12 +01:00
float2int_fp30_intbig.py tests/float2int*: Suffix with _intbig, don't run on any other int type. 2017-03-06 16:30:12 +01:00
float2int_intbig.py tests/float2int*: Suffix with _intbig, don't run on any other int type. 2017-03-06 16:30:12 +01:00
float_array.py tests: Rename "array" module to "uarray". 2019-10-22 19:16:54 +11:00
float_compare.py py/objfloat: Fix binary ops with incompatible objects. 2017-09-02 23:05:24 +03:00
float_divmod.py py: Fix build error when float disabled; add test for divmod. 2014-09-13 19:58:18 +01:00
float_divmod_relaxed.py tests: Add a few tests for bool, bytearray, float to improve coverage. 2015-08-29 23:13:28 +01:00
float_format.py py/formatfloat: Fix case where floats could render with negative digits. 2018-03-01 17:00:02 +11:00
float_parse.py tests/float/float_parse.py: Add tests for accuracy of small decimals. 2018-09-20 22:26:53 +10:00
float_parse_doubleprec.py tests/float: Adjust float-parsing tests to pass with only a small error. 2018-02-26 15:54:03 +11:00
float_struct.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
int_big_float.py py: Implement raising a big-int to a negative power. 2017-07-25 11:49:22 +10:00
int_divzero.py tests/float: Add tests for zero to a negative power. 2017-02-03 00:04:13 +11:00
int_power.py tests: Make float/int_power.py pass on pyboard/single prec float. 2015-01-29 13:56:58 +00:00
list_index.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
math_domain.py py/modmath: Add full checks for math domain errors. 2017-10-10 15:57:45 +11:00
math_domain_special.py tests/float: Test -inf and some larger values for special math funcs. 2018-09-04 17:03:37 +10:00
math_factorial_intbig.py py/modmath: Add math.factorial, optimised and non-opt implementations. 2018-09-26 15:03:04 +10:00
math_fun.py py/modmath: Check for zero division in log with 2 args. 2017-07-04 02:15:11 +10:00
math_fun_bool.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
math_fun_int.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
math_fun_intbig.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
math_fun_special.py tests/float: Test -inf and some larger values for special math funcs. 2018-09-04 17:03:37 +10:00
math_isclose.py py/modmath: Implement math.isclose() for non-complex numbers. 2019-08-17 23:23:17 +10:00
math_isclose.py.exp py/modmath: Implement math.isclose() for non-complex numbers. 2019-08-17 23:23:17 +10:00
python36.py py/lexer: Add support for underscores in numeric literals. 2018-06-12 12:17:43 +10:00
python36.py.exp py/lexer: Add support for underscores in numeric literals. 2018-06-12 12:17:43 +10:00
string_format.py tests: Add boolean-as-integer formatting tests for fixed regression. 2020-01-24 10:57:17 +11:00
string_format2.py float/string_format: Split large test in 2. 2016-02-13 17:18:55 +02:00
string_format_fp30.py test/string_format_fp30: Variant of string_format for 30-bit stuffed float. 2016-03-06 06:10:40 +02:00
string_format_modulo.py py/formatfloat: Fix number of digits and exponent sign when rounding. 2017-06-13 13:36:56 +10:00
string_format_modulo2.py tests/string_format_modulo2: Split off intbig test. 2017-03-07 00:13:36 +01:00
string_format_modulo2_intbig.py tests/string_format_modulo2: Split off intbig test. 2017-03-07 00:13:36 +01:00
string_format_modulo3.py py/formatfloat: Fix number of digits and exponent sign when rounding. 2017-06-13 13:36:56 +10:00
string_format_modulo3.py.exp py/formatfloat: Fix number of digits and exponent sign when rounding. 2017-06-13 13:36:56 +10:00
true_value.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
types.py tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00