summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-02 10:34:44 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-02 10:34:44 +0100
commit48815668747a1d684d7fce155b5c54066a9f07e2 (patch)
treef7210a7130a00d8c26ac9f19c20b16ee46d737fd /tests
parent084ef373fb6e634c2b4e06803a4dd5eb3f8f359c (diff)
downloadmicropython-48815668747a1d684d7fce155b5c54066a9f07e2.tar.gz
micropython-48815668747a1d684d7fce155b5c54066a9f07e2.zip
py: Add support for sep and end keywords in print.
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/print.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/basics/print.py b/tests/basics/print.py
new file mode 100644
index 0000000000..880aaf44f9
--- /dev/null
+++ b/tests/basics/print.py
@@ -0,0 +1,20 @@
+# test builtin print function
+
+print()
+print(None)
+print('')
+print(1)
+print(1, 2)
+
+print(sep='')
+print(sep='x')
+print(end='')
+print(end='x\n')
+print(1, sep='')
+print(1, end='')
+print(1, sep='', end='')
+print(1, 2, sep='')
+print(1, 2, end='')
+print(1, 2, sep='', end='')
+
+print([{1:2}])