Skip to content

Commit e97c03b

Browse files
committed
Add tests
1 parent 9f5d0a8 commit e97c03b

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

integration_tests/test_tuple_02.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,21 @@ def f():
2626
assert t1[3] == complex(55, 55)
2727
print(t1[0], t1[1], t1[2], t1[3])
2828

29-
f()
29+
30+
def g_check(x: tuple[i32, i32], y: tuple[i32, i32]) -> bool:
31+
return x[0] == y[0]
32+
33+
def test_issue_1348():
34+
a11: tuple[i32, i32]
35+
b11: tuple[i32, i32]
36+
a11 = (1, 2)
37+
b11 = (1, 2)
38+
assert g_check(a11, b11)
39+
40+
41+
def check():
42+
f()
43+
test_issue_1348()
44+
45+
46+
check()

0 commit comments

Comments
 (0)