Skip to content

Commit 30c8d69

Browse files
Update run-strings.test
1 parent 07e6549 commit 30c8d69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mypyc/test-data/run-strings.test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,11 @@ def test_count() -> None:
822822
assert string.count("a") == 1
823823
assert string.count("b") == 3
824824
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
825830
def test_count_start_end() -> None:
826831
string = "abcbcb"
827832
assert string.count("a", 0, 4) == 1

0 commit comments

Comments
 (0)