aboutsummaryrefslogtreecommitdiffstats
path: root/internal/hash_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/hash_test.go')
-rw-r--r--internal/hash_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/hash_test.go b/internal/hash_test.go
index 222f3b4..063bd23 100644
--- a/internal/hash_test.go
+++ b/internal/hash_test.go
@@ -25,3 +25,11 @@ func (s *HashSuite) TestNewHash(c *C) {
c.Assert(hash, Equals, NewHash(hash.String()))
}
+
+func (s *HashSuite) TestIsZero(c *C) {
+ hash := NewHash("foo")
+ c.Assert(hash.IsZero(), Equals, true)
+
+ hash = NewHash("8ab686eafeb1f44702738c8b0f24f2567c36da6d")
+ c.Assert(hash.IsZero(), Equals, false)
+}