| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-03-30 | tests: Format all Python code with black, except tests in basics subdir. | David Lechner | |
| This adds the Python files in the tests/ directory to be formatted with ./tools/codeformat.py. The basics/ subdirectory is excluded for now so we aren't changing too much at once. In a few places `# fmt: off`/`# fmt: on` was used where the code had special formatting for readability or where the test was actually testing the specific formatting. | |||
| 2020-02-11 | tests/basics: Add tests for equality between bool and int/float/complex. | Damien George | |
| False/True should be implicitly converted to 0/1 when compared with numeric types. | |||
| 2017-10-10 | py/formatfloat: Don't print the negative sign of a NaN value. | Damien George | |
| NaN may have the sign bit set but it has no meaning, so don't print it out. | |||
| 2017-09-26 | py/objfloat: Support raising a negative number to a fractional power. | Damien George | |
| This returns a complex number, following CPython behaviour. For ports that don't have complex numbers enabled this will raise a ValueError which gives a fail-safe for scripts that were written assuming complex numbers exist. | |||
| 2017-09-04 | py/obj: Fix comparison of float/complex NaN with itself. | Damien George | |
| IEEE floating point is specified such that a comparison of NaN with itself returns false, and Python respects these semantics. This patch makes uPy also have these semantics. The fix has a minor impact on the speed of the object-equality fast-path, but that seems to be unavoidable and it's much more important to have correct behaviour (especially in this case where the wrong answer for nan==nan is silently returned). | |||
| 2017-04-04 | tests/float: Add tests for hashing float and complex numbers. | Damien George | |
| 2017-03-06 | tests/float/complex1: Split out intbig test. | Paul Sokolovsky | |
| 2017-02-03 | tests/float: Add tests for zero to a negative power. | Damien George | |
| 2017-01-19 | tests/float: Add test for assigning to attribute of complex number. | Damien George | |
| 2016-12-21 | tests: Add tests to improve coverage of runtime.c. | Rami Ali | |
| 2015-05-13 | py: Fix printing of complex number when imaginary part is nan | stijn | |
| 2015-04-04 | tests: Add tests to exercise lexer; and some more complex number tests. | Damien George | |
| 2015-04-04 | tests: Add missing tests for builtins, and many other things. | Damien George | |
| 2015-03-25 | tests: Add tests for SyntaxError, TypeError, and other missing things. | Damien George | |
| This is intended to improve coverage of the test suite. | |||
| 2015-03-14 | tests: Add some more tests for complex numbers and ure module. | Damien George | |
| 2015-03-02 | tests: Add tests for builtins: all, any, sum, abs. | Damien George | |
| 2015-03-02 | tests: Add tests for op special meths, ubinascii, complex. | Damien George | |
