diff --git a/unittests/test_ordered_set.py b/unittests/test_ordered_set.py index d8d2119a..96c1eba0 100644 --- a/unittests/test_ordered_set.py +++ b/unittests/test_ordered_set.py @@ -131,3 +131,12 @@ def test_obscure_stuff(): o2 |= [4] assert o != o2 assert repr(OrderedSet()) == "OrderedSet()" + + +def test_peek(): + o = OrderedSet() + o.add(1) + o.add(2) + o.add(3) + p1 = o.peek() + assert p1 == 3