diff options
author | Rami Ali <flowergrass@users.noreply.github.com> | 2016-12-21 14:47:02 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-21 15:44:41 +1100 |
commit | 531c206e8b2e4d1af735af473c2fdeb8c1b36247 (patch) | |
tree | e4b8399b32609cf6f6fd3e04cdd8b09005b3f777 /tests/float/complex1.py | |
parent | 46a6592f9ac072386ee2a106c8928d2a1d955cbb (diff) | |
download | micropython-531c206e8b2e4d1af735af473c2fdeb8c1b36247.tar.gz micropython-531c206e8b2e4d1af735af473c2fdeb8c1b36247.zip |
tests: Add tests to improve coverage of runtime.c.
Diffstat (limited to 'tests/float/complex1.py')
-rw-r--r-- | tests/float/complex1.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/float/complex1.py b/tests/float/complex1.py index ebe4b0f37c..027d12583c 100644 --- a/tests/float/complex1.py +++ b/tests/float/complex1.py @@ -75,6 +75,12 @@ try: except TypeError: print("TypeError") +#small int on LHS, complex on RHS, unsupported op +try: + print(1 | 1j) +except TypeError: + print('TypeError') + # zero division try: 1j / 0 |