Skip to content

Commit 49cf266

Browse files
test: Basic tests for set
1 parent 6c87555 commit 49cf266

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_util/test_pformat.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ def test_fmt_tuple(self):
6969
(4,)
7070
),
7171
)'''), pformat(((2, 3, (4,)),), indent=4))
72+
73+
def test_set(self):
74+
self.assertEqual('set()', pformat(set()))
75+
self.assertEqual('{-8, -2, 1, 2, 5}', pformat({2, 5, -8, 1, -2}))

0 commit comments

Comments
 (0)