Skip to content

Commit 5dd163c

Browse files
advikkabraczgdp1807
authored andcommitted
Skip testing for fast
1 parent 37a717e commit 5dd163c

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ RUN(NAME test_tuple_04 LABELS cpython llvm llvm_jit c)
569569
RUN(NAME test_tuple_concat LABELS cpython llvm llvm_jit)
570570
RUN(NAME test_tuple_nested LABELS cpython llvm llvm_jit)
571571
RUN(NAME test_const_dict LABELS cpython llvm llvm_jit)
572+
RUN(NAME test_params LABELS cpython llvm llvm_jit NOFAST)
572573
RUN(NAME test_dict_01 LABELS cpython llvm llvm_jit c)
573574
RUN(NAME test_dict_02 LABELS cpython llvm llvm_jit c NOFAST)
574575
RUN(NAME test_dict_03 LABELS cpython llvm llvm_jit NOFAST)

integration_tests/test_dict_14.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
from lpython import i32
22

3-
def takes_dict(a: dict[i32, i32]) -> dict[i32, i32]:
4-
return {1:1, 2:2}
5-
63
def test_dict():
74
d_i32: dict[i32, i32] = {5: 1, 5: 2}
85
d_str: dict[str, i32] = {'a': 1, 'a': 2}
@@ -65,7 +62,4 @@ def test_dict():
6562
l_i32_2.append(i)
6663
assert l_i32_2 == [30]
6764

68-
w: dict[i32, i32] = takes_dict({1:1, 2:2})
69-
assert len(w) == 2
70-
7165
test_dict()
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
from lpython import i32
22

3-
def takes_set(a: set[i32]) -> set[i32]:
4-
return {1, 2, 3}
5-
63
s1: set[str] = {"a", "b", "c", "a"}
74
s2: set[i32] = {1, 2, 3, 1}
85
s3: set[tuple[i32, i32]] = {(1, 2), (2, 3), (4, 5)}
96

10-
s4: set[i32] = takes_set({1, 2})
11-
127
assert len(s1) == 3
138
assert len(s2) == 3
149
assert len(s3) == 3
15-
assert len(s4) == 3

integration_tests/test_params.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
def takes_set(a: set[i32]) -> set[i32]:
2+
return {1, 2, 3}
3+
4+
def takes_dict(a: dict[i32, i32]) -> dict[i32, i32]:
5+
return {1:1, 2:2}
6+
7+
s: set[i32] = takes_set({1, 2})
8+
9+
assert len(s) == 3
10+
11+
w: dict[i32, i32] = takes_dict({1:1, 2:2})
12+
assert len(w) == 2

0 commit comments

Comments
 (0)