Commit 42387243 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 78c071d0
...@@ -96,7 +96,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) { ...@@ -96,7 +96,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
i := 0 i := 0
for test := range testq { for test := range testq {
i++ i++
fmt.Printf("\nδT: %v δD: %s\n", test.δblkTab, test.δdataTab) fmt.Printf("\nδT: %s δD: %s\n", xbtreetest.KVTxt(test.δblkTab), test.δdataTab)
δblk := setI64{} δblk := setI64{}
...@@ -154,7 +154,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) { ...@@ -154,7 +154,7 @@ func testΔFtail(t_ *testing.T, testq chan ΔFTestEntry) {
vδf = append(vδf, δfok) vδf = append(vδf, δfok)
} }
fmt.Printf("@%s δT: %v δD: %s\n", commit.At, test.δblkTab, test.δdataTab) fmt.Printf("@%s δT: %s δD: %s\n", commit.At, xbtreetest.KVTxt(test.δblkTab), test.δdataTab)
fmt.Printf("@%s %s\n", commit.At, commit.Tree) fmt.Printf("@%s %s\n", commit.At, commit.Tree)
// update δftail // update δftail
...@@ -205,13 +205,17 @@ func TestΔFtail(t *testing.T) { ...@@ -205,13 +205,17 @@ func TestΔFtail(t *testing.T) {
return δ return δ
} }
const a, b, c = "a", "b", "c" const a,b,c,d,e,f,g,h,i,j = "a","b","c","d","e","f","g","h","i","j"
testv := []ΔFTestEntry{ testv := []ΔFTestEntry{
{δT{1:a,2:b,3:ø}, δD(a)}, {δT{1:a,2:b,3:ø}, δD(a)},
{δT{}, δD(c)}, {δT{}, δD(c)},
{δT{2:c}, δD(a,b)}, {δT{2:c}, δD(a,b)},
// XXX more // XXX more
// found by TestΔFtailRandom
{δT{1:a,6:i,7:d,8:e}, δD(a,c,e,f,g,h,i,j)},
} }
testq := make(chan ΔFTestEntry) testq := make(chan ΔFTestEntry)
......
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