mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 14:04:52 +02:00
Add a test that the last op is hash
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user