Commit 179693bd authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6b28f33c
...@@ -107,11 +107,13 @@ def test_topoEncoding(): ...@@ -107,11 +107,13 @@ def test_topoEncoding():
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"
# key->value trees # 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'
assert X(T([], Bv([1,2], 4,5))) == 'T/B1:4,2:5' assert X(T([], Bv([1,2], 4,5))) == 'T/B1:4,2:5'
# XXX more assert X(T([3],
Bv([1], 10),
Bv([4,5], 11,12))) == 'T3/B1:10-B4:11,5:12'
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):
......
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