]> Cypherpunks.ru repositories - gogost.git/blobdiff - src/cypherpunks.ru/gogost/gost28147/cfb_test.go
FailNow() must be used instead of just marking Fail()
[gogost.git] / src / cypherpunks.ru / gogost / gost28147 / cfb_test.go
index fd0e18699076d29035af15947b0f1a578acc217f..cd30d86f8e42db1ee3a66ed8569054e1c0673226 100644 (file)
@@ -45,12 +45,12 @@ func TestCFBCryptomanager(t *testing.T) {
        fe := c.NewCFBEncrypter(iv)
        fe.XORKeyStream(tmp, pt)
        if bytes.Compare(tmp, ct) != 0 {
-               t.Fail()
+               t.Fatal("encryption failed")
        }
        fd := c.NewCFBDecrypter(iv)
        fd.XORKeyStream(tmp, ct)
        if bytes.Compare(tmp, pt) != 0 {
-               t.Fail()
+               t.Fatal("decryption failed")
        }
 }