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
commit8c87b672ace093509a3fdcd3e5b983b71486b045 (patch)
treeaa9dcf2894c0d3635656d5bf78c5383715a874f4
parent3599c51014d68d0a95937f6a28c15a833c483c6b (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)
}