Skip to content

Commit

Permalink
Merge pull request #105 from SpiNNakerManchester/peek
Browse files Browse the repository at this point in the history
rubbered
  • Loading branch information
alan-stokes authored Oct 25, 2019
2 parents 90840e0 + 937dae2 commit 953fb6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions unittests/test_ordered_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 953fb6c

Please sign in to comment.