summaryrefslogtreecommitdiff
path: root/tests/misc/non_compliant.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-10-07 12:57:25 +1100
committerDamien George <damien.p.george@gmail.com>2016-10-07 12:57:25 +1100
commit82af4d6749072d01195da647f54b79c80f1ad731 (patch)
treecc3d607cb93264b1d0c06dd939e7d03cad660443 /tests/misc/non_compliant.py
parentdffa383b062b0dd788abed0af242b66bde910e6b (diff)
tests: Improve coverage of struct with test for non-compliant behaviour.
Diffstat (limited to 'tests/misc/non_compliant.py')
-rw-r--r--tests/misc/non_compliant.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/misc/non_compliant.py b/tests/misc/non_compliant.py
index ba2dd15c6..1157ff8b2 100644
--- a/tests/misc/non_compliant.py
+++ b/tests/misc/non_compliant.py
@@ -1,6 +1,7 @@
# tests for things that are not implemented, or have non-compliant behaviour
import array
+import ustruct
# array deletion not implemented
try:
@@ -87,3 +88,9 @@ try:
del [][2:3:4]
except NotImplementedError:
print('NotImplementedError')
+
+# struct pack with too many args, not checked by uPy
+print(ustruct.pack('bb', 1, 2, 3))
+
+# struct pack with too few args, not checked by uPy
+print(ustruct.pack('bb', 1))