aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2019-01-15 23:56:18 +0100
committerDimitri Sokolyuk <demon@dim13.org>2019-01-15 23:56:18 +0100
commit50a8404e982ef47d75b7cdaa029d1123186aa98d (patch)
treee36cbfa9329747a99b440f599c8bed4e4ac1193c
parent15b2bef41569c846a8a8209b1b840e75595e24f0 (diff)
...
-rw-r--r--internal/hash/hash_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/hash/hash_test.go b/internal/hash/hash_test.go
index 0526146..da3a4a6 100644
--- a/internal/hash/hash_test.go
+++ b/internal/hash/hash_test.go
@@ -16,11 +16,11 @@ func TestOpen(t *testing.T) {
if err := binary.Read(fd, binary.BigEndian, &hdr); err != nil {
t.Fatal(err)
}
- if hdr.Magic != hashMagic {
- t.Errorf("got %x, want %x", hdr.Magic, hashMagic)
+ if hdr.Magic != Magic {
+ t.Errorf("got %x, want %x", hdr.Magic, Magic)
}
- if hdr.Version != hashVersion {
- t.Errorf("got %x, want %x", hdr.Version, hashVersion)
+ if hdr.Version != Version {
+ t.Errorf("got %x, want %x", hdr.Version, Version)
}
t.Logf("%+v", hdr)
}