diff options
author | Damien George <damien.p.george@gmail.com> | 2014-09-13 18:43:09 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-09-13 18:43:09 +0100 |
commit | 8594ce228011e6264f59ade4ff8a7f2bfa90a649 (patch) | |
tree | 528fa7008c5e4c4b283c33abcf3eefd17d6a0b52 /tests | |
parent | 5c6783496d8211eb4b19cec2cbb2b66e2a37f0eb (diff) | |
download | micropython-8594ce228011e6264f59ade4ff8a7f2bfa90a649.tar.gz micropython-8594ce228011e6264f59ade4ff8a7f2bfa90a649.zip |
py: Implement divmod, % and proper // for floating point.
Tested and working on unix and pyboard.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/float/modulo.py | 14 | ||||
-rwxr-xr-x | tests/run-tests | 4 |
2 files changed, 4 insertions, 14 deletions
diff --git a/tests/float/modulo.py b/tests/float/modulo.py deleted file mode 100644 index 911268513a..0000000000 --- a/tests/float/modulo.py +++ /dev/null @@ -1,14 +0,0 @@ -# check modulo matches python definition -# TODO we currenty fail with this -if False: - print(1.23456 % 0.7) - print(-1.23456 % 0.7) - print(1.23456 % -0.7) - print(-1.23456 % -0.7) - - a = 1.23456 - b = 0.7 - print(a % b) - print(a % -b) - print(-a % b) - print(-a % -b) diff --git a/tests/run-tests b/tests/run-tests index 21a0039e43..34f855d08d 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -33,6 +33,10 @@ def run_tests(pyb, tests, args): if os.getenv('TRAVIS') == 'true': skip_tests.add('basics/memoryerror.py') + # Some tests shouldn't be run on pyboard + if pyb is not None: + skip_tests.add('float/float_divmod.py') # tested by float/float_divmod_relaxed.py instead + # Some tests are known to fail with native emitter # Remove them from the below when they work if args.emit == 'native': |