summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/complex1.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-03-02 17:21:10 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-02 17:21:10 +0000
commit24ffb8e8762c2f14fe109edbc42401285eb8247b (patch)
tree45ed2f0f56dd1ef4677b567135ecdd642b38ae65 /tests/float/complex1.py
parentdb1e10d5ea1d8d7233a615bec6ada77c9ca6ac5f (diff)
downloadmicropython-24ffb8e8762c2f14fe109edbc42401285eb8247b.tar.gz
micropython-24ffb8e8762c2f14fe109edbc42401285eb8247b.zip
tests: Add tests for builtins: all, any, sum, abs.
Diffstat (limited to 'tests/float/complex1.py')
-rw-r--r--tests/float/complex1.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/float/complex1.py b/tests/float/complex1.py
index 941a00d35c..4cf7a25f6d 100644
--- a/tests/float/complex1.py
+++ b/tests/float/complex1.py
@@ -26,3 +26,7 @@ print(1j / 2)
#print(1j / 2j) uPy doesn't print correctly
#print(1j ** 2) uPy doesn't print correctly
#print(1j ** 2j) uPy doesn't print correctly
+
+# builtin abs
+print(abs(1j))
+print(abs(1j + 2))