summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/bool1.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-08-25 18:18:57 +0100
committerDamien George <damien.p.george@gmail.com>2015-08-29 23:13:28 +0100
commit1d350b8ac6c65bd53115bfdc7511e4028f3c69ac (patch)
treeb4f06dceff7101c8cacdb9e81b0fa30eca4f1735 /tests/basics/bool1.py
parenta488c266c34f70ab6bff86b1f31f1d1a343ab1b8 (diff)
downloadmicropython-1d350b8ac6c65bd53115bfdc7511e4028f3c69ac.tar.gz
micropython-1d350b8ac6c65bd53115bfdc7511e4028f3c69ac.zip
tests: Add a few tests for bool, bytearray, float to improve coverage.
Diffstat (limited to 'tests/basics/bool1.py')
-rw-r--r--tests/basics/bool1.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/bool1.py b/tests/basics/bool1.py
index 99bd837927..35d9ed8ccc 100644
--- a/tests/basics/bool1.py
+++ b/tests/basics/bool1.py
@@ -9,3 +9,9 @@ print(False or True)
# unary operators
print(+True)
print(-True)
+
+# unsupported unary op
+try:
+ len(False)
+except TypeError:
+ print('TypeError')