summaryrefslogtreecommitdiff
path: root/tests/float
AgeCommit message (Collapse)Author
2015-03-25tests: Add tests for SyntaxError, TypeError, and other missing things.Damien George
This is intended to improve coverage of the test suite.
2015-03-14tests: Add some more tests for complex numbers and ure module.Damien George
2015-03-12tests: Add tests for things that are not already tested.Damien George
The aim here is to improve coverage of the code.
2015-03-03tests: Add tests for boundmeth; and bignum cmp, unary, float, error.Damien George
2015-03-03tests: Skip special math fun tests when math module exists but not funs.stijn
2015-03-02tests: Add tests for builtins: all, any, sum, abs.Damien George
2015-03-02tests: Add tests for op special meths, ubinascii, complex.Damien George
2015-02-22tests: Add test for math special functions.Damien George
2015-02-08py: Parse big-int/float/imag constants directly in parser.Damien George
Previous to this patch, a big-int, float or imag constant was interned (made into a qstr) and then parsed at runtime to create an object each time it was needed. This is wasteful in RAM and not efficient. Now, these constants are parsed straight away in the parser and turned into objects. This allows constants with large numbers of digits (so addresses issue #1103) and takes us a step closer to #722.
2015-02-02tests: Add test for cmath module.Damien George
2015-01-29tests: Make float/int_power.py pass on pyboard/single prec float.Damien George
2015-01-29tests: Add some tests to improve coverage.Damien George
Used gcov to find some parts of vm.c, runtime.c, obj.c that were not covered by any tests. Still need to use gcov more thoroughly.
2015-01-27py: Add support for floats in mp_binary_{get,set}_val()David Steinberg
- This then provides support for floats in the struct package
2015-01-24tests: Update float2int tests for new range classificationsDavid Steinberg
- Tests vary based on build configuration (32/64-bit and internal int type). - Added tests for exceptions raised on overflow of int type.
2015-01-22lib/libm: Add frexp and modf functions; use in stmhal; add tests.Damien George
Addresses issue #1081.
2015-01-08tests: Separate out test cases that rely on float support to float/ dir.Damien George
2015-01-07py: Temporary fix for conversion of float to int when fits in small int.Damien George
Addresses issue #1044 (see also #1040). Could do with a better fix.
2015-01-02py: Raise exception if trying to convert inf/nan to int.Damien George
2015-01-02py: Fix float to int conversion for large exponents.David Steinberg
2014-12-31objstr: Fix %d-formatting of floats.Paul Sokolovsky
2014-12-30py: Partially fix float to int conversion.Paul Sokolovsky
This fixes conversion when float type has more mantissa bits than small int, and float value has small exponent. This is for example the case of 32-bit platform using doubles, and converting value of time.time(). Conversion of floats with larg exponnet is still not handled correctly.
2014-12-18lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal.Damien George
acoshf, asinhf, atanhf were added from musl. mathsincos.c was split up into its original, separate files (from newlibe-nano-2). tan was added. All of the important missing float functions are now implemented, and pyboard now passes tests/float/math_fun.py (finally!).
2014-11-29tests: Split out float test from builtin_round.py.Damien George
2014-11-21py: Add support for float/double arrays in array module.Damien George
Addresses issue #981.
2014-09-13py: Fix build error when float disabled; add test for divmod.Damien George
2014-09-13py: Implement divmod, % and proper // for floating point.Damien George
Tested and working on unix and pyboard.
2014-07-05tests: Rename test scripts, changing - to _ for consistency.Damien George
From now on, all new tests must use underscore. Addresses issue #727.
2014-06-20tests/float/: Skip tests if "math" module is not available.Paul Sokolovsky
2014-06-05py: Raise TypeError when trying to format non-int with %x,%o,%X.Damien George
This behaviour follows Python 3.5 standard (in 3.4 it's a DeprecationWarning which we'd rather make a TypeError).
2014-06-05Remove tests that fail under CPython 3.5Chris Angelico
See http://bugs.python.org/issue19995 for rationale. As micropython currently aims for Python 3.3 compatibility I have not changed behaviour, but this change allows the test suite to be run against a newer Python without having spurious failures.
2014-05-01Fix the builtin min() and max() functions (and add tests).Andrew Scheller
Fixes #539
2014-04-17tests: Split out those tests requiring float and import.Damien George
Tests in basics (which should probably be renamed to core) should not rely on float, or import any non-built-in files. This way these tests can be run when those features are not available. All test in basics now pass on the pyboard using stmhal port, except for string-repr which has some issues with character hex printing.