Commit 69bd173f authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 151a018d
......@@ -67,7 +67,7 @@ def test_structureOf():
t[10] = 'hello'
assert xbtree.StructureOf(t) == T([], B(10))
# known degenerate topology, see:
# known degenerate topology
t = buildDegenerateZTree()
assert xbtree.StructureOf(t) == T([4],
T([2],
......@@ -108,7 +108,7 @@ def test_topoEncoding():
T([], B(11))) ))) == "T4/T2-T/T-T-T6,10/B1-B3-T-T-T/T-B7-B11/B5"
for tree in xbtree.AllStructs([1,3,7,8], 1,2):
for tree in xbtree.AllStructs([1,3,7,8], 1,2, allowEmptyBuckets=True):
t2 = xbtree.TopoDecode(xbtree.TopoEncode(tree))
assert t2 == tree
......
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