Skip to content

Commit b634965

Browse files
committed
add one more test
1 parent 70c2628 commit b634965

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

unpythonic/llist.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,17 @@ def test():
289289
assert member(2, l) == ll(2, 3)
290290
assert not member(5, l)
291291

292-
# tuple unpacking syntax
292+
# sequence unpacking syntax
293293
l, r = cons(1, 2)
294294
assert l == 1 and r == 2
295295

296296
a, b, c = ll(1, 2, 3)
297297
assert a == 1 and b == 2 and c == 3
298298

299+
# unpacking a binary tree
300+
a, b, c, d = BinaryTreeIterator(t)
301+
assert a == 1 and b == 2 and c == 3 and d == 4
302+
299303
assert lreverse(ll(1, 2, 3)) == ll(3, 2, 1)
300304

301305
assert lappend(ll(1, 2, 3), ll(4, 5, 6)) == ll(1, 2, 3, 4, 5, 6)

0 commit comments

Comments
 (0)