summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/bytes.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-04 23:16:22 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-04 23:16:22 +0100
commit97abe22963af5b62656cef5a46c195215f75f7d2 (patch)
tree40929dd2cac2ee1e03af4edd5d3fb870f9ac989f /tests/basics/bytes.py
parent9dd36404646f857c4f250537bac0d9a8ad041d25 (diff)
downloadmicropython-97abe22963af5b62656cef5a46c195215f75f7d2.tar.gz
micropython-97abe22963af5b62656cef5a46c195215f75f7d2.zip
tests: Add tests to exercise lexer; and some more complex number tests.
Diffstat (limited to 'tests/basics/bytes.py')
-rw-r--r--tests/basics/bytes.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basics/bytes.py b/tests/basics/bytes.py
index 2dafad49b8..d3da15c8e9 100644
--- a/tests/basics/bytes.py
+++ b/tests/basics/bytes.py
@@ -1,4 +1,12 @@
+# literals
+print(b'123')
+print(br'123')
+print(rb'123')
+print(b'\u1234')
+
+# construction
print(bytes())
+print(bytes(b'abc'))
a = b"123"
print(a)