Skip to content

Commit 06037f4

Browse files
committed
add test for set.remove
1 parent c4b594f commit 06037f4

File tree

1 file changed

+7
-0
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests

1 file changed

+7
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_set.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,10 @@ def test_set_or():
5353

5454
union = s1 | s4
5555
assert union == {1, 2, 3}
56+
57+
58+
def test_set_remove():
59+
s = {1, 2, 3}
60+
assert s == {1, 2, 3}
61+
s.remove(3)
62+
assert s == {1, 2}

0 commit comments

Comments
 (0)