diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-11 03:47:21 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-11 03:59:16 +0300 |
commit | 0c43cf9154e331ab82bec7c727bc58307f8222c5 (patch) | |
tree | d909e5a1a48ef86467d078d06a068b0618be4e2d /tests | |
parent | ef9124f5ffb60aee8d3c59288a03d2fa078eec5a (diff) | |
download | micropython-0c43cf9154e331ab82bec7c727bc58307f8222c5.tar.gz micropython-0c43cf9154e331ab82bec7c727bc58307f8222c5.zip |
modstruct: Basic implementation of native struct alignment and types.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basics/struct1.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/struct1.py b/tests/basics/struct1.py index db0d823f68..a32979bff9 100644 --- a/tests/basics/struct1.py +++ b/tests/basics/struct1.py @@ -3,3 +3,6 @@ print(struct.calcsize("<bI")) print(struct.unpack("<bI", b"\x80\0\0\x01\0")) print(struct.calcsize(">bI")) print(struct.unpack(">bI", b"\x80\0\0\x01\0")) + +# 32-bit little-endian specific +#print(struct.unpack("bI", b"\x80\xaa\x55\xaa\0\0\x01\0")) |