We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07e6549 commit 30c8d69Copy full SHA for 30c8d69
mypyc/test-data/run-strings.test
@@ -822,6 +822,11 @@ def test_count() -> None:
822
assert string.count("a") == 1
823
assert string.count("b") == 3
824
assert string.count("c") == 2
825
+def test_count_start() -> None:
826
+ string = "abcbcb"
827
+ assert string.count("a", 2) == 0
828
+ assert string.count("b", 2) == 2
829
+ assert string.count("c", 2) == 2
830
def test_count_start_end() -> None:
831
string = "abcbcb"
832
assert string.count("a", 0, 4) == 1
0 commit comments