Skip to content

Commit

Permalink
TEST: Enable string comparison test for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Aug 2, 2023
1 parent 4f1219d commit 45668c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ RUN(NAME test_vars_01 LABELS cpython llvm)
RUN(NAME test_version LABELS cpython llvm)
RUN(NAME logical_binop1 LABELS cpython llvm)
RUN(NAME vec_01 LABELS cpython llvm c NOFAST)
RUN(NAME test_str_comparison LABELS cpython llvm c)
RUN(NAME test_str_comparison LABELS cpython llvm c wasm)
RUN(NAME test_bit_length LABELS cpython llvm c)
RUN(NAME str_to_list_cast LABELS cpython llvm c)
RUN(NAME cast_01 LABELS cpython llvm c)
Expand Down
14 changes: 8 additions & 6 deletions integration_tests/test_str_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ def f():
assert s1 <= s2
assert s1 >= s2
s1 = "abcde"
assert s1 >= s2
assert s1 >= s2
assert s1 > s2
s1 = "abc"
assert s1 < s2
assert s1 < s2
assert s1 <= s2
s1 = "Abcd"
s2 = "abcd"
assert s1 < s2
assert s1 < s2
s1 = "orange"
s2 = "apple"
assert s1 >= s2
assert s1 > s2
assert s1 >= s2
assert s1 > s2
s1 = "albatross"
s2 = "albany"
assert s1 >= s2
Expand All @@ -28,9 +28,11 @@ def f():
assert s1 < s2
assert s1 != s2
s1 = "Zebra"
s2 = "ant"
s2 = "ant"
assert s1 <= s2
assert s1 < s2
assert s1 != s2

print("Ok")

f()

0 comments on commit 45668c2

Please sign in to comment.