diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-29 20:41:19 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-29 20:41:19 +0200 |
commit | c46d01f8c10e6363b680fa6876e91bd8eaf3bb3e (patch) | |
tree | dde41c1253534bf4ff36e39454f2bdbdf4b9590f /bug/bug_test.go | |
parent | 41e61a67b63e4d6c517005cf6f427115a664bdb5 (diff) | |
download | git-bug-c46d01f8c10e6363b680fa6876e91bd8eaf3bb3e.tar.gz |
bug: implement comment edition
- add a new operation
- add a new "timeline" in the snapshot that hold a processed version of the operations
Diffstat (limited to 'bug/bug_test.go')
-rw-r--r-- | bug/bug_test.go | 7 |
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) |