Skip to content

Commit

Permalink
TEST: WASM: Add for string length
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Aug 1, 2023
1 parent e582946 commit 9339138
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ RUN(NAME test_types_02 LABELS cpython llvm c wasm)
RUN(NAME test_str_01 LABELS cpython llvm c)
RUN(NAME test_str_02 LABELS cpython llvm c)
RUN(NAME test_str_03 LABELS cpython llvm c)
RUN(NAME test_str_04 LABELS cpython llvm c wasm)
RUN(NAME test_list_01 LABELS cpython llvm c)
RUN(NAME test_list_02 LABELS cpython llvm c)
RUN(NAME test_list_03 LABELS cpython llvm c NOFAST)
Expand Down
11 changes: 11 additions & 0 deletions integration_tests/test_str_04.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def main0():
x: str
x = "abcdefghijkl"
print(len(x))
assert len(x) == 12

y: str = "123"
print(len(y))
assert len(y) == 3

main0()

0 comments on commit 9339138

Please sign in to comment.