Skip to content

Commit 0fb7a7a

Browse files
committed
tests/btree1: Add testcase for iterating btree object directly.
1 parent 2f7ebf1 commit 0fb7a7a

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

tests/extmod/btree1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,6 @@
5454

5555
print(list(db.keys()))
5656
print(list(db.values()))
57+
58+
for k in db:
59+
print(k)

tests/extmod/btree1.py.exp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ KeyError
2727
(b'bar1', b'foo1')
2828
[b'bar1', b'foo1', b'foo3']
2929
[b'foo1', b'bar1', b'bar3']
30+
b'bar1'
31+
b'foo1'
32+
b'foo3'

0 commit comments

Comments
 (0)