aboutsummaryrefslogtreecommitdiff
path: root/src/hash
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2018-07-10 09:23:46 +0200
committerTobias Klauser <tobias.klauser@gmail.com>2018-10-25 06:32:12 +0000
commit41d6315e34f677c7102c73253819b12cf6e3e209 (patch)
tree4598336657294338e41f81c96040cc00b77dc701 /src/hash
parentc659be4dc862cdf14a24134f2cfc16fa81e6d84c (diff)
downloadgo-41d6315e34f677c7102c73253819b12cf6e3e209.tar.gz
go-41d6315e34f677c7102c73253819b12cf6e3e209.zip
hash/crc64: use t.Fatalf in TestGolden
Use t.Fatalf instead of t.Errorf followed by t.FailNow. Change-Id: Ie31f8006e7d9daca7f59bf6f0d5ae688222be486 Reviewed-on: https://go-review.googlesource.com/c/144111 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/hash')
-rw-r--r--src/hash/crc64/crc64_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/hash/crc64/crc64_test.go b/src/hash/crc64/crc64_test.go
index 9db05b02fe..9cf602c82f 100644
--- a/src/hash/crc64/crc64_test.go
+++ b/src/hash/crc64/crc64_test.go
@@ -62,15 +62,13 @@ func TestGolden(t *testing.T) {
io.WriteString(c, g.in)
s := c.Sum64()
if s != g.outISO {
- t.Errorf("ISO crc64(%s) = 0x%x want 0x%x", g.in, s, g.outISO)
- t.FailNow()
+ t.Fatalf("ISO crc64(%s) = 0x%x want 0x%x", g.in, s, g.outISO)
}
c = New(tabECMA)
io.WriteString(c, g.in)
s = c.Sum64()
if s != g.outECMA {
- t.Errorf("ECMA crc64(%s) = 0x%x want 0x%x", g.in, s, g.outECMA)
- t.FailNow()
+ t.Fatalf("ECMA crc64(%s) = 0x%x want 0x%x", g.in, s, g.outECMA)
}
}
}