diff options
| author | Damien George | 2014-01-12 16:34:03 -0800 |
|---|---|---|
| committer | Damien George | 2014-01-12 16:34:03 -0800 |
| commit | 34f813ee29c7191e3de455c3fc9c788496e3b29e (patch) | |
| tree | 71528d45bccbec0632d7baeef4fa5c4a487537f6 /tests/basics | |
| parent | ec3e14e2af48432a406d840896ae4551ddff0b7f (diff) | |
| parent | e820491f7a54055895ca0f01226a7b6de4873059 (diff) | |
Merge pull request #162 from chipaca/str_find
Implement a basic str.find; fixes #67
Diffstat (limited to 'tests/basics')
| -rw-r--r-- | tests/basics/tests/string_find.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/basics/tests/string_find.py b/tests/basics/tests/string_find.py new file mode 100644 index 000000000..90063228f --- /dev/null +++ b/tests/basics/tests/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)) |
