tests/btree1: Add testcase for iterating btree object directly.

This commit is contained in:
Paul Sokolovsky 2016-06-24 23:43:20 +03:00
parent 2f7ebf16de
commit 0fb7a7a7ce
2 changed files with 6 additions and 0 deletions

View File

@ -54,3 +54,6 @@ for k, v in db.items(None, None, btree.DESC):
print(list(db.keys())) print(list(db.keys()))
print(list(db.values())) print(list(db.values()))
for k in db:
print(k)

View File

@ -27,3 +27,6 @@ KeyError
(b'bar1', b'foo1') (b'bar1', b'foo1')
[b'bar1', b'foo1', b'foo3'] [b'bar1', b'foo1', b'foo3']
[b'foo1', b'bar1', b'bar3'] [b'foo1', b'bar1', b'bar3']
b'bar1'
b'foo1'
b'foo3'