diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-19 17:41:01 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-19 17:41:01 +0000 |
commit | 5f7e8dc176661b49e12a0d8425101799ff176d19 (patch) | |
tree | 0fd3daa844300d62a3836b5bb16c3c7be2b875cb /tests/basics/string_find.py | |
parent | b2ebb161d494864cdbee05ee8b74a775845e238e (diff) | |
parent | db796ef84d1737edc4ee44f1b53ff0c1fddb349c (diff) |
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'tests/basics/string_find.py')
-rw-r--r-- | tests/basics/string_find.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/basics/string_find.py b/tests/basics/string_find.py new file mode 100644 index 000000000..90063228f --- /dev/null +++ b/tests/basics/string_find.py @@ -0,0 +1,11 @@ +print("hello world".find("ll")) +print("hello world".find("ll", None)) +print("hello world".find("ll", 1)) +print("hello world".find("ll", 1, None)) +print("hello world".find("ll", None, None)) +print("hello world".find("ll", 1, -1)) +print("hello world".find("ll", 1, 1)) +print("hello world".find("ll", 1, 2)) +print("hello world".find("ll", 1, 3)) +print("hello world".find("ll", 1, 4)) +print("hello world".find("ll", 1, 5)) |