Commit 93786da1292 by Armin Rigo

one more passing test

--HG--
branch : bag
parent a46480cfd06
......@@ -67,3 +67,15 @@ class TestBag(BaseTestBag):
assert got == lp2
py.test.raises(BagLooksEmpty, b_pop, q)
py.test.raises(BagLooksEmpty, b_pop, q)
def test_large_push_pop(self):
self.start_transaction()
q = self.allocate_bag()
lps = [stm_allocate(16) for i in range(65)]
for lp in lps:
b_add(q, lp)
for lp in lps:
got = b_pop(q)
assert got == lp
py.test.raises(BagLooksEmpty, b_pop, q)
py.test.raises(BagLooksEmpty, b_pop, q)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment