diff --git a/tests/_set.py b/tests/_set.py index 1f69a1c3..39e578d0 100644 --- a/tests/_set.py +++ b/tests/_set.py @@ -76,4 +76,9 @@ assert type({}) is dict assert {1,2}.issubset({1,2,3}) assert {1,2,3}.issuperset({1,2}) assert {1,2,3}.isdisjoint({4,5,6}) -assert not {1,2,3}.isdisjoint({2,3,4}) \ No newline at end of file +assert not {1,2,3}.isdisjoint({2,3,4}) + +x = {i for i in range(3)} +assert x == {0,1,2} +x = {i for i in range(3) if i > 0} +assert x == {1,2} \ No newline at end of file