diff options
author | Damien George <damien.p.george@gmail.com> | 2015-03-02 17:21:10 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-03-02 17:21:10 +0000 |
commit | 24ffb8e8762c2f14fe109edbc42401285eb8247b (patch) | |
tree | 45ed2f0f56dd1ef4677b567135ecdd642b38ae65 /tests/float/complex1.py | |
parent | db1e10d5ea1d8d7233a615bec6ada77c9ca6ac5f (diff) | |
download | micropython-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.py | 4 |
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)) |