Skip to content

Commit fe4f98e

Browse files
committed
TEST: WASM: Add for string length
1 parent 6f7e7f5 commit fe4f98e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ RUN(NAME test_types_02 LABELS cpython llvm c wasm)
494494
RUN(NAME test_str_01 LABELS cpython llvm c)
495495
RUN(NAME test_str_02 LABELS cpython llvm c)
496496
RUN(NAME test_str_03 LABELS cpython llvm c)
497+
RUN(NAME test_str_04 LABELS cpython llvm c wasm)
497498
RUN(NAME test_list_01 LABELS cpython llvm c)
498499
RUN(NAME test_list_02 LABELS cpython llvm c)
499500
RUN(NAME test_list_03 LABELS cpython llvm c NOFAST)

integration_tests/test_str_04.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
def main0():
2+
x: str
3+
x = "abcdefghijkl"
4+
print(len(x))
5+
assert len(x) == 12
6+
7+
y: str = "123"
8+
print(len(y))
9+
assert len(y) == 3
10+
11+
main0()

0 commit comments

Comments
 (0)