Add a test that the last op is hash
This commit is contained in:
parent
f64c4f34ac
commit
85df15bfc3
1 changed files with 3 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ func run_roundtrip_test(t *testing.T, src_data, changed []byte, num_of_patches,
|
|||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if delta_ops[len(delta_ops)-1].Type != OpHash {
|
||||
t.Fatalf("Last operation was not OpHash")
|
||||
}
|
||||
total_data_in_delta = 0
|
||||
outputbuf := bytes.Buffer{}
|
||||
for _, op := range delta_ops {
|
||||
|
|
|
|||
Loading…
Reference in a new issue