diff --git a/integration_tests/test_membership_01.py b/integration_tests/test_membership_01.py index 1fab47cda0..0f3b2b0d94 100644 --- a/integration_tests/test_membership_01.py +++ b/integration_tests/test_membership_01.py @@ -6,6 +6,9 @@ def test_int_dict(): i = 4 assert (i in a) + a = {} + assert (1 not in a) + def test_str_dict(): a: dict[str, str] = {'a':'1', 'b':'2', 'c':'3'} i: str @@ -14,6 +17,9 @@ def test_str_dict(): i = 'c' assert (i in a) + a = {} + assert ('a' not in a) + def test_int_set(): a: set[i32] = {1, 2, 3, 4} i: i32 @@ -22,6 +28,9 @@ def test_int_set(): i = 4 assert (i in a) + a = set() + assert (1 not in a) + def test_str_set(): a: set[str] = {'a', 'b', 'c', 'e', 'f'} i: str @@ -30,6 +39,9 @@ def test_str_set(): i = 'c' assert (i in a) + a = set() + assert ('a' not in a) + test_int_dict() test_str_dict() test_int_set()