test: typo

This commit is contained in:
fatedier 2016-03-15 18:50:49 +08:00
parent 8ed55e1288
commit 5c6f03afcf

View File

@ -25,7 +25,7 @@ func TestEncrypto(t *testing.T) {
pp.Init([]byte("Hana"))
res, err := pp.Encrypto([]byte("Just One Test!"))
if err != nil {
t.Fatalf(err)
t.Fatal(err)
}
fmt.Printf("[%x]\n", res)
@ -36,12 +36,12 @@ func TestDecrypto(t *testing.T) {
pp.Init([]byte("Hana"))
res, err := pp.Encrypto([]byte("Just One Test!"))
if err != nil {
t.Fatalf(err)
t.Fatal(err)
}
res, err = pp.Decrypto(res)
if err != nil {
t.Fatalf(err)
t.Fatal(err)
}
fmt.Printf("[%s]\n", string(res))