This commit is contained in:
2026-06-06 15:36:27 +03:00
parent 05eea3b279
commit 0e019118c2
9 changed files with 229 additions and 1206 deletions

View File

@@ -144,7 +144,7 @@ func TestCumdeltaBound(t *testing.T) {
c.Append(191)
fmt.Printf("pos: %d\n", c.pos)
fmt.Printf("%d\n", buf.Chunks()[0])
fmt.Printf("%d\n", c.Chunks())
//////////////////////////
c.Lock()
@@ -155,7 +155,7 @@ func TestCumdeltaBound(t *testing.T) {
c.Append(305)
fmt.Printf("pos: %d\n", c.pos)
fmt.Printf("%d\n", buf.Chunks()[0])
fmt.Printf("%d\n", c.Chunks())
d := NewReverseCumulativeDeltaDecompressor(buf, c.Size(), fracDigits)
d.RestoreFromEnd()
@@ -205,7 +205,7 @@ func TestInsdeltaBound(t *testing.T) {
c.Append(191)
fmt.Printf("pos: %d\n", c.pos)
fmt.Printf("%d\n", buf.Chunks()[0])
fmt.Printf("%d\n", c.Chunks())
//////////////////////////
//bound := c.GetState()
@@ -216,7 +216,7 @@ func TestInsdeltaBound(t *testing.T) {
c.Append(305)
fmt.Printf("pos: %d\n", c.pos)
fmt.Printf("%d\n", buf.Chunks()[0])
fmt.Printf("%d\n", c.Chunks())
d := NewReverseInstantDeltaDecompressor(buf, c.Size(), fracDigits)
d.RestoreFromEnd()
@@ -265,7 +265,7 @@ func TestInsdeltaBound2(t *testing.T) {
c.Append(130)
fmt.Printf("pos: %d\n", c.pos)
fmt.Printf("%d\n", buf.Chunks()[0])
fmt.Printf("%d\n", c.Chunks())
//////////////////////////
//bound := c.GetState()
@@ -276,7 +276,7 @@ func TestInsdeltaBound2(t *testing.T) {
c.Append(10)
fmt.Printf("pos: %d\n", c.pos)
fmt.Printf("%d\n", buf.Chunks()[0])
fmt.Printf("%d\n", c.Chunks())
d := NewReverseInstantDeltaDecompressor(buf, c.Size(), fracDigits)
d.RestoreFromEnd()