From d63aadfe4674e957deb23a44d79547b90fff2cee Mon Sep 17 00:00:00 2001 From: Shaikh Ubaid Date: Wed, 2 Aug 2023 17:59:37 +0530 Subject: [PATCH] TEST: Enable string comparison test for wasm --- integration_tests/CMakeLists.txt | 2 +- integration_tests/test_str_comparison.py | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/integration_tests/CMakeLists.txt b/integration_tests/CMakeLists.txt index 56a07b2c620..ea050e04334 100644 --- a/integration_tests/CMakeLists.txt +++ b/integration_tests/CMakeLists.txt @@ -707,7 +707,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) diff --git a/integration_tests/test_str_comparison.py b/integration_tests/test_str_comparison.py index 4ac40aaa78a..3108c224e0f 100644 --- a/integration_tests/test_str_comparison.py +++ b/integration_tests/test_str_comparison.py @@ -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 @@ -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()