aboutsummaryrefslogtreecommitdiffstats
path: root/bug/bug_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/bug_test.go')
-rw-r--r--bug/bug_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/bug/bug_test.go b/bug/bug_test.go
index 6504da1a..a7759ad8 100644
--- a/bug/bug_test.go
+++ b/bug/bug_test.go
@@ -78,6 +78,13 @@ func TestBugSerialisation(t *testing.T) {
bug2.packs[0].Operations[i].base().hash = bug1.packs[0].Operations[i].base().hash
}
+ // check hashes
+ for i := range bug1.packs[0].Operations {
+ if !bug2.packs[0].Operations[i].base().hash.IsValid() {
+ t.Fatal("invalid hash")
+ }
+ }
+
deep.CompareUnexportedFields = true
if diff := deep.Equal(bug1, bug2); diff != nil {
t.Fatal(diff)