Exemple #1
0
 def remove(self):
     s = OrderedSet()
     with Assert.raises(KeyError):
         s.remove(1)
     s.add(1)
     s.remove(1)
Exemple #2
0
 def discard(self):
     s = OrderedSet()
     s.discard(1)
     s.add(1)
     s.discard(1)
     Assert(1).not_in(s)
Exemple #3
0
 def add(self):
     s = OrderedSet()
     s.add(1)
     Assert(1).in_(s)