diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-01-04 12:35:26 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-01-04 12:35:26 +0000 |
| commit | 32f88410a153967af3f013d02a1a662aec19ec04 (patch) | |
| tree | c6c30f9a8aae68def156d7564268e3928c00cb03 /tests | |
| parent | 2a5e6538b941d1fc9c1c0ef0bb0827b5ed2425d2 (diff) | |
| parent | 0be78d44e59dd82eccde984a899d25bdf9afc093 (diff) | |
Merge branch 'master' of github.com:dpgeorge/micropython
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/tests/slice-bstr1.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/tests/slice-bstr1.py b/tests/basics/tests/slice-bstr1.py index 0bed95914..74dbc2061 100644 --- a/tests/basics/tests/slice-bstr1.py +++ b/tests/basics/tests/slice-bstr1.py @@ -22,6 +22,11 @@ print(b"123"[0:]) print(b"123"[:0]) print(b"123"[:-3]) print(b"123"[:-4]) +# Range check testing, don't segfault, please ;-) +print(b"123"[:1000000]) +print(b"123"[1000000:]) +print(b"123"[:-1000000]) +print(b"123"[-1000000:]) # No IndexError! print(b""[1:1]) print(b""[-1:-1]) |
