Skip to content

Commit 97c32da

Browse files
test:minor
1. Added a test for str.count() and included it over CMakeList.txt
1 parent 617831d commit 97c32da

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ RUN(NAME test_str_01 LABELS cpython llvm c)
519519
RUN(NAME test_str_02 LABELS cpython llvm c)
520520
RUN(NAME test_str_03 LABELS cpython llvm c)
521521
RUN(NAME test_str_04 LABELS cpython llvm c wasm)
522+
RUN(NAME test_str_05 LABELS cpython llvm c)
522523
RUN(NAME test_list_01 LABELS cpython llvm c)
523524
RUN(NAME test_list_02 LABELS cpython llvm c)
524525
RUN(NAME test_list_03 LABELS cpython llvm c NOFAST)

integration_tests/test_str_05.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
def main0():
2+
x: str
3+
x = "Hello, World"
4+
y: str
5+
y = "o"
6+
assert x.count(y) == 2
7+
8+
main0()

0 commit comments

Comments
 (0)