94 Commits (fadd6bbe436df73a8a0d15fa9b7e743707ee7c36)

Author SHA1 Message Date
Damien George 1ad0013dec tests: Add some tests for bigint hash, float hash and float parsing. 7 years ago
Damien George d2c1db1e5c tests/float/float_parse: Allow test to run on 32-bit archs. 7 years ago
Damien George 955ee6477f py/formatfloat: Fix case where floats could render with negative digits. 7 years ago
Damien George 7b050fa76c py/formatfloat: Fix case where floats could render with a ":" character. 7 years ago
Damien George bc12eca461 py/formatfloat: Fix rounding of %f format with edge-case FP values. 7 years ago
Damien George 6dad088569 tests/float: Adjust float-parsing tests to pass with only a small error. 7 years ago
Damien George bbb08431f3 py/objfloat: Fix case of raising 0 to -infinity. 7 years ago
Damien George b75cb8392b py/parsenum: Fix parsing of floats that are close to subnormal. 7 years ago
Damien George 7cae17fac7 tests/float/builtin_float_hash: Add test to improve objfloat.c coverage. 7 years ago
Damien George 84895f1a21 py/parsenum: Improve parsing of floating point numbers. 7 years ago
Damien George a07fc5b640 py/objfloat: Allow float() to parse anything with the buffer protocol. 7 years ago
Damien George 08a196697c py/formatfloat: Don't print the negative sign of a NaN value. 7 years ago
Damien George 25e140652b py/modmath: Add full checks for math domain errors. 7 years ago
Damien George bdc6e86e07 py/objfloat: Support raising a negative number to a fractional power. 7 years ago
Damien George d4b75f6b68 py/obj: Fix comparison of float/complex NaN with itself. 7 years ago
Paul Sokolovsky 9950865c39 py/objfloat: Fix binary ops with incompatible objects. 7 years ago
Damien George 04552ff71b py: Implement raising a big-int to a negative power. 7 years ago
Damien George 6b8b56f859 py/modmath: Check for zero division in log with 2 args. 7 years ago
Damien George 6ed4581f54 py/formatfloat: Fix number of digits and exponent sign when rounding. 8 years ago
Paul Sokolovsky e094200750 tests/float/builtin_float_minmax: PEP8 fixes. 8 years ago
Damien George fde54350a8 tests/float: Convert "sys.exit()" to "raise SystemExit". 8 years ago
Damien George 677fb31015 tests/float: Add tests for hashing float and complex numbers. 8 years ago
Paul Sokolovsky 28876d3902 tests/float/byte*_construct: Skip on missing array module. 8 years ago
Damien George bfb48c1620 tests/float: Add tests for round() of inf, nan and large number. 8 years ago
Damien George bacb52aa2d tests/float: Add tests for math funcs that return ints. 8 years ago
Paul Sokolovsky a0cbc108ba tests/float: Make various tests skippable. 8 years ago
Paul Sokolovsky 88ffe0d5cc tests/string_format_modulo2: Split off intbig test. 8 years ago
Paul Sokolovsky 4b03941f5e tests/float2int*: Suffix with _intbig, don't run on any other int type. 8 years ago
Paul Sokolovsky 121fb88988 float/float2int*: Make actually be parsable for MICROPY_LONGINT_IMPL_NONE. 8 years ago
Paul Sokolovsky 325c4473a5 tests/float/complex1: Split out intbig test. 8 years ago
Damien George 8a39e18f5f tests/float: Add tests for zero to a negative power. 8 years ago
Damien George 213a718953 tests/float: Add test for assigning to attribute of complex number. 8 years ago
Rami Ali 64dc925c4a tests/float: Improve formatfloat.c test coverage using Python. 8 years ago
Rami Ali 531c206e8b tests: Add tests to improve coverage of runtime.c. 8 years ago
Damien George 49bf7617d0 tests/float/builtin_float_round: Test round() with second arg. 8 years ago
Damien George 290daa15d9 tests/float: Add test for parsing a float from an empty string. 8 years ago
Damien George e1e7657277 py/formatfloat: Fix further cases of buffer overflow in formatting. 9 years ago
Damien George cea6cf8a5e py/formatfloat: Fix buffer overflow when formatting tiny numbers. 9 years ago
Paul Sokolovsky d973c1bc12 test/string_format_fp30: Variant of string_format for 30-bit stuffed float. 9 years ago
Paul Sokolovsky 50e0a7b9d4 test/float2int_fp30: Variant of float2int for 30-bit stuffed float. 9 years ago
Paul Sokolovsky d4315a6caf float/string_format: Split large test in 2. 9 years ago
Paul Sokolovsky dc587a3623 test/float2int: Make test output clearer. 9 years ago
Damien George 3b936a5f4c tests: Fix math_fun_special test so it passes with single prec float. 9 years ago
Damien George b1fa907d56 tests: Allow float tests to run when MATH_SPECIAL_FUNCTIONS is disabled. 9 years ago
Michael Buesch 17298af61e py/modmath: Add domain error checking to sqrt, log, log2, log10. 9 years ago
Paul Sokolovsky b64e0575fd tests/float/string_format: Add testcase for incorrect rounding for %f. 9 years ago
Damien George e5635f4ab3 py: Catch all cases of integer (big and small) division by zero. 9 years ago
Damien George a81539db25 tests: Add further tests for mpz code. 9 years ago
Dave Hylands 9d6128acdc stmhal: fix single precision float printing error 9 years ago
Damien George 2b000474d9 py/lexer: Properly classify floats that look like hex numbers. 9 years ago