From 8594ce228011e6264f59ade4ff8a7f2bfa90a649 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 13 Sep 2014 18:43:09 +0100 Subject: py: Implement divmod, % and proper // for floating point. Tested and working on unix and pyboard. --- tests/float/modulo.py | 14 -------------- tests/run-tests | 4 ++++ 2 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 tests/float/modulo.py (limited to 'tests') diff --git a/tests/float/modulo.py b/tests/float/modulo.py deleted file mode 100644 index 911268513..000000000 --- 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 21a0039e4..34f855d08 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': -- cgit v1.2.3