Commit 01a821bd authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 349bcaee
......@@ -65,3 +65,15 @@ def test_topologyOf():
(((), ()), (6, 10)),
"""
def test_iterStructPermutations():
def X(keys, maxdepth, maxsplit):
return list(xbtree.iterAllStructPermutations(keys, maxdepth, maxsplit))
assert X([], 0, 0) == [ T([], B()) ]
assert X([1], 0, 0) == [ T([], B(1)) ]
assert X([1,3], 0, 0) == [ T([], B(1,3)) ]
assert X([], 0, 1) == [ T([], B()), T([s], B()) ] # XXX s is any
assert X([], 1, 0) == [ T([], B()), T([], T([], B())) ]
# XXX ...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment