tests/btree1: Add testcase for iterating btree object directly.
This commit is contained in:
parent
2f7ebf16de
commit
0fb7a7a7ce
|
@ -54,3 +54,6 @@ for k, v in db.items(None, None, btree.DESC):
|
|||
|
||||
print(list(db.keys()))
|
||||
print(list(db.values()))
|
||||
|
||||
for k in db:
|
||||
print(k)
|
||||
|
|
|
@ -27,3 +27,6 @@ KeyError
|
|||
(b'bar1', b'foo1')
|
||||
[b'bar1', b'foo1', b'foo3']
|
||||
[b'foo1', b'bar1', b'bar3']
|
||||
b'bar1'
|
||||
b'foo1'
|
||||
b'foo3'
|
||||
|
|
Loading…
Reference in a new issue