diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-03-13 21:53:36 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-03-13 21:53:36 +0000 |
| commit | de4d7aecc8d2a47b4a07eb29047a3bf3ac021115 (patch) | |
| tree | 02c79e39de9d3433d7c796887fb9d97040bb49dc /tests/basics/string_find.py | |
| parent | aae40ee6444db616a994c5827e5007fe19895f8d (diff) | |
| parent | c5d70ba48b77508cdfc2a5e08128db375cf618d2 (diff) | |
Merge pull request #343 from xbe/master
Implement str.count and add tests for it.
Diffstat (limited to 'tests/basics/string_find.py')
| -rw-r--r-- | tests/basics/string_find.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/basics/string_find.py b/tests/basics/string_find.py index 90063228f..df65fd6e5 100644 --- a/tests/basics/string_find.py +++ b/tests/basics/string_find.py @@ -9,3 +9,15 @@ 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)) +print("hello world".find("ll", -100)) +print("0000".find('0')) +print("0000".find('0', 0)) +print("0000".find('0', 1)) +print("0000".find('0', 2)) +print("0000".find('0', 3)) +print("0000".find('0', 4)) +print("0000".find('0', 5)) +print("0000".find('-1', 3)) +print("0000".find('1', 3)) +print("0000".find('1', 4)) +print("0000".find('1', 5)) |
