46 Commits (a7261ae059f171e9677a86c59c7f7ed9e24b7ace)

Author SHA1 Message Date
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
Damien George 1d350b8ac6 tests: Add a few tests for bool, bytearray, float to improve coverage. 9 years ago
Damien George d007cb8903 tests: Add more tests to improve coverage, mostly testing exceptions. 9 years ago
Sebastian Plamauer 1e8ca3a3cf modbuiltins: Implement round() to precision. 9 years ago
Damien George 6f49520042 py: Implement second arg for math.log (optional value for base). 10 years ago
Damien George 9ede4dcfbb tests: Add some tests for printing floats to improve coverage. 10 years ago
Damien George 79474c6b16 py: Remove unnecessary extra handling of padding of nan/inf. 10 years ago
stijn 861670ba2a py: Implement mp_format_float for doubles and use where appropriate 10 years ago
stijn 709955b601 py: Fix printing of complex number when imaginary part is nan 10 years ago
Paul Sokolovsky 3d3ef36e97 modstruct: Rename module to "ustruct", to allow full Python-level impl. 10 years ago
Damien George 956d765786 py: Fix printing of "inf" and "nan" floating point values. 10 years ago
Damien George 97abe22963 tests: Add tests to exercise lexer; and some more complex number tests. 10 years ago
Damien George 9dd3640464 tests: Add missing tests for builtins, and many other things. 10 years ago
Damien George 214179b430 tests: Add tests for SyntaxError, TypeError, and other missing things. 10 years ago
Damien George f256cfef4f tests: Add some more tests for complex numbers and ure module. 10 years ago
Damien George af43565322 tests: Add tests for things that are not already tested. 10 years ago
Damien George 086a7616dd tests: Add tests for boundmeth; and bignum cmp, unary, float, error. 10 years ago
stijn 25f1264699 tests: Skip special math fun tests when math module exists but not funs. 10 years ago
Damien George 24ffb8e876 tests: Add tests for builtins: all, any, sum, abs. 10 years ago
Damien George 2af921fb51 tests: Add tests for op special meths, ubinascii, complex. 10 years ago
Damien George 5c047b97f2 tests: Add test for math special functions. 10 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser. 10 years ago
Damien George ae3150cb5c tests: Add test for cmath module. 10 years ago
Damien George 26c0b155fa tests: Make float/int_power.py pass on pyboard/single prec float. 10 years ago
Damien George 12c66be2b8 tests: Add some tests to improve coverage. 10 years ago
David Steinberg 0b3014ce3a py: Add support for floats in mp_binary_{get,set}_val() 10 years ago
David Steinberg 4c1a7e0d6a tests: Update float2int tests for new range classifications 10 years ago
Damien George 6d1f5070ce lib/libm: Add frexp and modf functions; use in stmhal; add tests. 10 years ago
Damien George 19b3fea6a8 tests: Separate out test cases that rely on float support to float/ dir. 10 years ago
Damien George ad2307c92c py: Temporary fix for conversion of float to int when fits in small int. 10 years ago
Damien George 6fd4b36bc5 py: Raise exception if trying to convert inf/nan to int. 10 years ago
David Steinberg 6e0b6d02db py: Fix float to int conversion for large exponents. 10 years ago
Paul Sokolovsky 2c75665445 objstr: Fix %d-formatting of floats. 10 years ago
Paul Sokolovsky 12033df511 py: Partially fix float to int conversion. 10 years ago
Damien George f04329e93b lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal. 10 years ago
Damien George 7288403b9b tests: Split out float test from builtin_round.py. 10 years ago
Damien George c9f8f653ad py: Add support for float/double arrays in array module. 10 years ago
Damien George 83695596ed py: Fix build error when float disabled; add test for divmod. 10 years ago
Damien George 8594ce2280 py: Implement divmod, % and proper // for floating point. 10 years ago
Damien George 539681fffd tests: Rename test scripts, changing - to _ for consistency. 10 years ago
Paul Sokolovsky f605172d2b tests/float/: Skip tests if "math" module is not available. 11 years ago
Damien George d4c2bddd0c py: Raise TypeError when trying to format non-int with %x,%o,%X. 11 years ago
Chris Angelico 7a6e09635a Remove tests that fail under CPython 3.5 11 years ago
Andrew Scheller 37067666ee Fix the builtin min() and max() functions (and add tests). 11 years ago
Damien George 5cd0b2227f tests: Split out those tests requiring float and import. 11 years ago