diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-02 10:34:44 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-02 10:34:44 +0100 |
commit | 48815668747a1d684d7fce155b5c54066a9f07e2 (patch) | |
tree | f7210a7130a00d8c26ac9f19c20b16ee46d737fd /tests | |
parent | 084ef373fb6e634c2b4e06803a4dd5eb3f8f359c (diff) | |
download | micropython-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.py | 20 |
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}]) |