summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-12 21:53:52 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-12 21:53:52 +0000
commite820491f7a54055895ca0f01226a7b6de4873059 (patch)
tree04dae4952aa094d089e4dfc0652264bda94db1be /tests
parentfd17921b75817a07d688ccaa9130f65c1181f910 (diff)
Implement a basic str.find; fixes #67
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/string_find.py11
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))