Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
advikkabra committed Aug 15, 2024
1 parent f1dbe33 commit d440ded
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions integration_tests/test_membership_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit d440ded

Please sign in to comment.