diff options
Diffstat (limited to 'objects_test.go')
-rw-r--r-- | objects_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/objects_test.go b/objects_test.go index 6826957..c48b768 100644 --- a/objects_test.go +++ b/objects_test.go @@ -29,6 +29,7 @@ func (s *ObjectsSuite) TestNewCommit(c *C) { commit, err := s.r.Commit(hash) c.Assert(err, IsNil) + c.Assert(commit.Hash, Equals, commit.ID()) c.Assert(commit.Hash.String(), Equals, "a5b8b09e2f8fcb0bb99d3ccb0958157b40890d69") c.Assert(commit.Tree().Hash.String(), Equals, "c2d30fa8ef288618f65f6eed6e168e0d514886f4") |