From 6bac6d3388407f5cd3b9a08f61e84ad4bd2a494c Mon Sep 17 00:00:00 2001 From: aps <62445385+apsz3@users.noreply.github.com> Date: Fri, 17 Feb 2023 20:19:59 -0500 Subject: [PATCH] test --- tests/_set.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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