summaryrefslogtreecommitdiff
path: root/tests/float/modulo.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-13 18:43:09 +0100
committerDamien George <damien.p.george@gmail.com>2014-09-13 18:43:09 +0100
commit8594ce228011e6264f59ade4ff8a7f2bfa90a649 (patch)
tree528fa7008c5e4c4b283c33abcf3eefd17d6a0b52 /tests/float/modulo.py
parent5c6783496d8211eb4b19cec2cbb2b66e2a37f0eb (diff)
py: Implement divmod, % and proper // for floating point.
Tested and working on unix and pyboard.
Diffstat (limited to 'tests/float/modulo.py')
-rw-r--r--tests/float/modulo.py14
1 files changed, 0 insertions, 14 deletions
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)