Commit 804b4700 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 179693bd
...@@ -106,7 +106,6 @@ def test_topoEncoding(): ...@@ -106,7 +106,6 @@ def test_topoEncoding():
T([], B(7)), T([], B(7)),
T([], B(11))) ))) == "T4/T2-T/T-T-T6,10/B1-B3-T-T-T/T-B7-B11/B5" T([], B(11))) ))) == "T4/T2-T/T-T-T6,10/B1-B3-T-T-T/T-B7-B11/B5"
# tree with key->value # tree with key->value
assert X(T([], Bv([]))) == 'T/B:' assert X(T([], Bv([]))) == 'T/B:'
assert X(T([], Bv([1], 4))) == 'T/B1:4' assert X(T([], Bv([1], 4))) == 'T/B1:4'
...@@ -115,7 +114,7 @@ def test_topoEncoding(): ...@@ -115,7 +114,7 @@ def test_topoEncoding():
Bv([1], 10), Bv([1], 10),
Bv([4,5], 11,12))) == 'T3/B1:10-B4:11,5:12' Bv([4,5], 11,12))) == 'T3/B1:10-B4:11,5:12'
# TopoEncode/TopoDecode on autogenerated topologies.
for tree in xbtree.AllStructs([1,3,7,8], 1,2, allowEmptyBuckets=True): for tree in xbtree.AllStructs([1,3,7,8], 1,2, allowEmptyBuckets=True):
t2 = xbtree.TopoDecode(xbtree.TopoEncode(tree)) t2 = xbtree.TopoDecode(xbtree.TopoEncode(tree))
assert t2 == 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