Commit 8b38d124 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 41c945f9
......@@ -445,6 +445,7 @@ def test_restructure():
for i in range(N):
X.append(XBlk('abcdefgh'[i]))
# assertB wraps global assertB to automatically fill in X[k] values for specified keys.
def assertB(znode, *keyv):
globals()['assertB'](znode, *[(k,X[k]) for k in keyv])
......@@ -598,6 +599,13 @@ def test_restructure():
assertB(b1, 1)
assertB(b35, 3,5)
# -> T2,4/B1-B3-B5 (kill intermediate trees, split B35->B3+B5)
R(z, 'T2,4/B1-B3-B5')
b5, = assertT(z, [2,4], b1,b35,'B')
b3 = b35
assertB(b1, 1)
assertB(b3, 3)
assertB(b5, 5)
......
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