aboutsummaryrefslogtreecommitdiff
path: root/hash/hash_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <sokolyuk@gmail.com>2021-11-22 13:58:59 +0100
committerDimitri Sokolyuk <sokolyuk@gmail.com>2021-11-22 13:58:59 +0100
commitd2690dc8a3ce794e1034ffdcbb82b080d3e81d9e (patch)
tree7c6e43e0b03152095273ab5058ec25cbc008b443 /hash/hash_test.go
parent1f1942ec0a4e55b3488a1771475994253bfe9b9e (diff)
adjust interface
Diffstat (limited to 'hash/hash_test.go')
-rw-r--r--hash/hash_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hash/hash_test.go b/hash/hash_test.go
index da3a4a6..66eca95 100644
--- a/hash/hash_test.go
+++ b/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 != Magic {
- t.Errorf("got %x, want %x", hdr.Magic, Magic)
+ if hdr.Magic != magic {
+ t.Errorf("got %x, want %x", hdr.Magic, magic)
}
- if hdr.Version != Version {
- t.Errorf("got %x, want %x", hdr.Version, Version)
+ if hdr.Version != version {
+ t.Errorf("got %x, want %x", hdr.Version, version)
}
t.Logf("%+v", hdr)
}