diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-21 21:54:15 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-21 21:54:15 +0000 |
commit | 12eaccacda83a15500dae4616b3c37deecb57182 (patch) | |
tree | 5ec75424388c0be9e3591f981982d891c07669cc /tests/basics/string1.py | |
parent | 55baff4c9bcbc001cbb8972c289ebfa356d4665b (diff) | |
parent | 7280f790881fa174e4d234266ff42f0fe3d847bc (diff) | |
download | micropython-12eaccacda83a15500dae4616b3c37deecb57182.tar.gz micropython-12eaccacda83a15500dae4616b3c37deecb57182.zip |
Merge branch 'master' of github.com:micropython/micropython
Conflicts:
py/objstr.c
py/py.mk
py/stream.c
unix/main.c
unix/socket.c
Diffstat (limited to 'tests/basics/string1.py')
-rw-r--r-- | tests/basics/string1.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/basics/string1.py b/tests/basics/string1.py index 3fecf799be..074b04ef8f 100644 --- a/tests/basics/string1.py +++ b/tests/basics/string1.py @@ -8,6 +8,19 @@ print(x) print('123' + "456") +print('123' * 5) + +print('abc'[1]) +print('abc'[-1]) +try: + 'abc'[100] +except IndexError: + print('caught') +try: + 'abc'[-4] +except IndexError: + print('caught2') + # iter print(list('str')) |