Commit 7cdf3e06 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 3ca2d3c8
...@@ -285,7 +285,6 @@ def AllStructs(kv1txt, kv2txt, n, seed=None): ...@@ -285,7 +285,6 @@ def AllStructs(kv1txt, kv2txt, n, seed=None):
kv2 = kvDecode(kv2txt, zctx.vdecode) kv2 = kvDecode(kv2txt, zctx.vdecode)
print("# allstructs %s %s" % (kv1txt, kv2txt)) print("# allstructs %s %s" % (kv1txt, kv2txt))
#print("# n=%d kv1=%s kv2=%s" % (n, kv1txt, kv2txt))
# create the tree # create the tree
ztree = zctx.root['ztree'] = XLOTree() ztree = zctx.root['ztree'] = XLOTree()
......
...@@ -433,7 +433,16 @@ func TestΔBTail(t *testing.T) { ...@@ -433,7 +433,16 @@ func TestΔBTail(t *testing.T) {
} }
// Verify ΔBtail on tree topologies generated by AllStructs.
func TestΔBTreeAllStructs(t *testing.T) { func TestΔBTreeAllStructs(t *testing.T) {
// considerations:
// - depth↑ better for testing (more tricky topologies)
// - nsplit↑ not so better for testing (leave s=1, max s=2)
// - |kmin - kmax| affects N(variants) significantly
// -> keep key range small (dumb increase does not help testing)
// - N(keys) affects N(variants) significantly
// -> keep Nkeys reasonably small/medium (dumb increase does not help testing)
// XXX given (kv1, kv2) test on automatically generated (tree1 -> tree2) // XXX given (kv1, kv2) test on automatically generated (tree1 -> tree2)
//testing.Short() //testing.Short()
} }
......
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