diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-24 23:43:20 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-24 23:43:20 +0300 |
| commit | 0fb7a7a7ce8e2cde57d5c9c8b59ba414467fc18d (patch) | |
| tree | 6bba6567867ef472846749c84ad20bdc0f3f4848 /tests/extmod | |
| parent | 2f7ebf16de471514066ffb3935370ec66ff66d4f (diff) | |
tests/btree1: Add testcase for iterating btree object directly.
Diffstat (limited to 'tests/extmod')
| -rw-r--r-- | tests/extmod/btree1.py | 3 | ||||
| -rw-r--r-- | tests/extmod/btree1.py.exp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/extmod/btree1.py b/tests/extmod/btree1.py index 75405bc4f..11acd7c98 100644 --- a/tests/extmod/btree1.py +++ b/tests/extmod/btree1.py @@ -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) diff --git a/tests/extmod/btree1.py.exp b/tests/extmod/btree1.py.exp index 494eb6a08..a266d7acf 100644 --- a/tests/extmod/btree1.py.exp +++ b/tests/extmod/btree1.py.exp @@ -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' |
