mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 12:49:24 +01:00
Add test for union with TruncatableSet.
This commit is contained in:
parent
cab9fcdd8d
commit
00aaf79ef8
@ -1153,6 +1153,12 @@ class TestTruncatableSet(SupyTestCase):
|
||||
s.truncate(3)
|
||||
self.assertEqual(s, {'bar', 'baz', 'qux'})
|
||||
|
||||
def testTruncateUnion(self):
|
||||
s = TruncatableSet(['bar', 'foo'])
|
||||
s |= {'baz', 'qux'}
|
||||
s.truncate(3)
|
||||
self.assertEqual(s, {'foo', 'baz', 'qux'})
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user