tmp
This commit is contained in:
@@ -98,17 +98,17 @@ func TestTimeDelta(t *testing.T) {
|
||||
|
||||
//c.Sync()
|
||||
|
||||
bound := c.GetState()
|
||||
// bound := c.GetState()
|
||||
|
||||
fmt.Println("AFTER SYNC")
|
||||
fmt.Printf("pos: %d\n", c.pos)
|
||||
chunks := buf.Chunks()
|
||||
if len(chunks) > 0 {
|
||||
fmt.Printf("%d\n", chunks[0])
|
||||
}
|
||||
// fmt.Println("AFTER SYNC")
|
||||
// fmt.Printf("pos: %d\n", c.pos)
|
||||
// chunks := buf.Chunks()
|
||||
// if len(chunks) > 0 {
|
||||
// fmt.Printf("%d\n", chunks[0])
|
||||
// }
|
||||
|
||||
d := NewReverseTimeDeltaDecompressor(buf, c.Size())
|
||||
d.RestoreFromBound(bound)
|
||||
// d.RestoreFromBound(bound)
|
||||
//d.RestoreFromEnd()
|
||||
|
||||
for range 12 {
|
||||
@@ -210,9 +210,9 @@ func TestInsdeltaBound(t *testing.T) {
|
||||
fmt.Printf("%d\n", buf.Chunks()[0])
|
||||
//////////////////////////
|
||||
|
||||
bound := c.GetState()
|
||||
//bound := c.GetState()
|
||||
|
||||
fmt.Printf("bound: pos=%d, h=%d\n", bound.Pos, bound.H)
|
||||
//fmt.Printf("bound: pos=%d, h=%d\n", bound.Pos, bound.H)
|
||||
|
||||
c.Append(248)
|
||||
c.Append(305)
|
||||
@@ -229,7 +229,7 @@ func TestInsdeltaBound(t *testing.T) {
|
||||
}
|
||||
|
||||
boundDecompressor := NewReverseInstantDeltaDecompressor(buf, c.Size(), fracDigits)
|
||||
boundDecompressor.RestoreFromBound(bound)
|
||||
//boundDecompressor.RestoreFromBound(bound)
|
||||
|
||||
fmt.Println("from bound:")
|
||||
for range 8 {
|
||||
@@ -270,9 +270,9 @@ func TestInsdeltaBound2(t *testing.T) {
|
||||
fmt.Printf("%d\n", buf.Chunks()[0])
|
||||
//////////////////////////
|
||||
|
||||
bound := c.GetState()
|
||||
//bound := c.GetState()
|
||||
|
||||
fmt.Printf("bound: pos=%d, h=%d\n", bound.Pos, bound.H)
|
||||
//fmt.Printf("bound: pos=%d, h=%d\n", bound.Pos, bound.H)
|
||||
|
||||
c.Append(70)
|
||||
c.Append(10)
|
||||
@@ -289,7 +289,7 @@ func TestInsdeltaBound2(t *testing.T) {
|
||||
}
|
||||
|
||||
boundDecompressor := NewReverseInstantDeltaDecompressor(buf, c.Size(), fracDigits)
|
||||
boundDecompressor.RestoreFromBound(bound)
|
||||
//sboundDecompressor.RestoreFromBound(bound)
|
||||
|
||||
fmt.Println("from bound:")
|
||||
for range 8 {
|
||||
|
||||
Reference in New Issue
Block a user