aboutsummaryrefslogtreecommitdiffstats
path: root/objects_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-03-08 23:30:52 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2016-03-08 23:30:52 +0100
commitb35fc295b4ac531adc72fc83f2af628c7c163c0e (patch)
tree0282f20de8279db354233d1d67e3743e08509020 /objects_test.go
parent9c9cdff966cc181296f400769d3c8596f17e743a (diff)
parent9e6a03b7956464ccd9d2fbacedd8e5cc23572d02 (diff)
downloadgo-git-b35fc295b4ac531adc72fc83f2af628c7c163c0e.tar.gz
Merge pull request #39 from scjalliance/git-object-interface
Added Object interface for Commit, Tree, Blob and Tag
Diffstat (limited to 'objects_test.go')
-rw-r--r--objects_test.go1
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")