aboutsummaryrefslogtreecommitdiffstats
path: root/formats/packfile/objects_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2015-10-25 02:11:04 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2015-10-25 02:11:04 +0100
commitf5dfba3742d551411ed0d6279c18f867b6496368 (patch)
treea2907d4f5d4814aa3fd8ea21af5bf5e9ead54a00 /formats/packfile/objects_test.go
parentec6f456c0e8c7058a29611429965aa05c190b54b (diff)
downloadgo-git-f5dfba3742d551411ed0d6279c18f867b6496368.tar.gz
formats/packfile: new reader API (wip)
Diffstat (limited to 'formats/packfile/objects_test.go')
-rw-r--r--formats/packfile/objects_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/formats/packfile/objects_test.go b/formats/packfile/objects_test.go
index 3d9675f..0760653 100644
--- a/formats/packfile/objects_test.go
+++ b/formats/packfile/objects_test.go
@@ -12,15 +12,15 @@ type ObjectsSuite struct{}
var _ = Suite(&ObjectsSuite{})
func (s *ObjectsSuite) TestComputeHash(c *C) {
- hash := ComputeHash("blob", []byte(""))
+ hash := ComputeHash(BlobObject, []byte(""))
c.Assert(hash.String(), Equals, "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391")
- hash = ComputeHash("blob", []byte("Hello, World!\n"))
+ hash = ComputeHash(BlobObject, []byte("Hello, World!\n"))
c.Assert(hash.String(), Equals, "8ab686eafeb1f44702738c8b0f24f2567c36da6d")
}
func (s *ObjectsSuite) TestNewHash(c *C) {
- hash := ComputeHash("blob", []byte("Hello, World!\n"))
+ hash := ComputeHash(BlobObject, []byte("Hello, World!\n"))
c.Assert(hash, Equals, NewHash(hash.String()))
}