X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgogost%2Fgost341194%2Fhash_test.go;h=49f86289be97c25c30b8d64aac4026febf8c12b3;hb=1f35967fa918c1653dfa787818ce4f3559283ff5;hp=ba38307840ed3c8078f65b94316aa9718f24f1c6;hpb=69e668f3499122e0b1140f3bd927de41ad279b94;p=gogost.git diff --git a/src/cypherpunks.ru/gogost/gost341194/hash_test.go b/src/cypherpunks.ru/gogost/gost341194/hash_test.go index ba38307..49f8628 100644 --- a/src/cypherpunks.ru/gogost/gost341194/hash_test.go +++ b/src/cypherpunks.ru/gogost/gost341194/hash_test.go @@ -40,7 +40,7 @@ func TestVectors(t *testing.T) { 0xab, 0xb4, 0xc2, 0xd2, 0x05, 0x5c, 0xff, 0x68, 0x5a, 0xf4, 0x91, 0x2c, 0x49, 0x49, 0x0f, 0x8d, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -51,7 +51,7 @@ func TestVectors(t *testing.T) { 0x21, 0x87, 0x1b, 0x43, 0x44, 0xc6, 0xa5, 0x73, 0xf8, 0x49, 0xfd, 0xce, 0x62, 0xf3, 0x14, 0xdd, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -62,7 +62,7 @@ func TestVectors(t *testing.T) { 0xcb, 0x5e, 0x0f, 0x29, 0xc9, 0x75, 0xbc, 0x75, 0x3b, 0x70, 0x49, 0x7c, 0x06, 0xa4, 0xd5, 0x1d, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -73,7 +73,7 @@ func TestVectors(t *testing.T) { 0x58, 0x2b, 0x65, 0x27, 0x3f, 0x48, 0xde, 0x72, 0xdb, 0x2f, 0xde, 0x16, 0xa4, 0x88, 0x9a, 0x4d, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -86,7 +86,7 @@ func TestVectors(t *testing.T) { 0x1c, 0x25, 0x66, 0x0a, 0x87, 0x06, 0x2a, 0x52, 0xd9, 0x26, 0xa9, 0xe8, 0xfe, 0x57, 0x33, 0xa4, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -97,7 +97,7 @@ func TestVectors(t *testing.T) { 0x29, 0x65, 0x29, 0x31, 0x5e, 0xac, 0xa7, 0x6b, 0xd1, 0xa1, 0x0f, 0x37, 0x6d, 0x1f, 0x42, 0x94, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -108,7 +108,7 @@ func TestVectors(t *testing.T) { 0xe6, 0x02, 0x67, 0x0d, 0x54, 0x35, 0x21, 0x31, 0x91, 0x50, 0xd2, 0xe1, 0x4e, 0xee, 0xc4, 0x45, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -119,7 +119,7 @@ func TestVectors(t *testing.T) { 0x47, 0xa2, 0x8c, 0xb6, 0xf8, 0x3e, 0xff, 0x1c, 0x69, 0x16, 0xa8, 0x15, 0xa6, 0x37, 0xff, 0xfa, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -130,7 +130,7 @@ func TestVectors(t *testing.T) { 0x4e, 0xf1, 0x4d, 0xe5, 0x1f, 0x78, 0xb4, 0xae, 0x57, 0xdd, 0x89, 0x3b, 0x62, 0xf5, 0x52, 0x08, }) != 0 { - t.Fail() + t.FailNow() } } @@ -143,7 +143,7 @@ func TestVectorsCryptoPro(t *testing.T) { 0xac, 0x11, 0x01, 0x56, 0x9b, 0x9c, 0x13, 0x58, 0x4a, 0xc4, 0x83, 0x23, 0x4c, 0xd6, 0x56, 0xc0, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -154,7 +154,7 @@ func TestVectorsCryptoPro(t *testing.T) { 0x71, 0x5a, 0x10, 0x3f, 0x17, 0xe3, 0x13, 0x3c, 0xef, 0xf1, 0xaa, 0xcf, 0x2f, 0x40, 0x30, 0x11, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -165,7 +165,7 @@ func TestVectorsCryptoPro(t *testing.T) { 0x74, 0x74, 0x59, 0xed, 0x81, 0x43, 0x99, 0x7e, 0x16, 0x3b, 0x29, 0x86, 0xf9, 0x2f, 0xd4, 0x2c, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -176,7 +176,7 @@ func TestVectorsCryptoPro(t *testing.T) { 0xbd, 0xb4, 0x72, 0x9a, 0xa9, 0x72, 0xd6, 0x0f, 0x54, 0x9a, 0xc3, 0x9b, 0x29, 0x72, 0x1b, 0xa0, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -187,7 +187,7 @@ func TestVectorsCryptoPro(t *testing.T) { 0x67, 0x65, 0xe7, 0x1b, 0x76, 0x54, 0x72, 0x78, 0x6e, 0x47, 0x70, 0xd5, 0x65, 0x83, 0x0a, 0x76, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -198,7 +198,7 @@ func TestVectorsCryptoPro(t *testing.T) { 0xe7, 0xfa, 0x17, 0xd6, 0x52, 0xc7, 0x5f, 0x69, 0xcb, 0x1b, 0xe7, 0x89, 0x3e, 0xde, 0x48, 0xeb, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -209,7 +209,7 @@ func TestVectorsCryptoPro(t *testing.T) { 0x4e, 0xf7, 0x53, 0x31, 0xd9, 0x40, 0x5e, 0x5f, 0x1a, 0x61, 0xdc, 0x31, 0x30, 0xa6, 0x50, 0x11, }) != 0 { - t.Fail() + t.FailNow() } h.Reset() @@ -222,7 +222,7 @@ func TestVectorsCryptoPro(t *testing.T) { 0x0d, 0x92, 0xed, 0xfd, 0x37, 0xcd, 0x10, 0x27, 0x51, 0x4c, 0x10, 0x08, 0xf6, 0x49, 0xc4, 0xe8, }) != 0 { - t.Fail() + t.FailNow() } }