mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
test: typo
This commit is contained in:
parent
8ed55e1288
commit
5c6f03afcf
@ -25,7 +25,7 @@ func TestEncrypto(t *testing.T) {
|
|||||||
pp.Init([]byte("Hana"))
|
pp.Init([]byte("Hana"))
|
||||||
res, err := pp.Encrypto([]byte("Just One Test!"))
|
res, err := pp.Encrypto([]byte("Just One Test!"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("[%x]\n", res)
|
fmt.Printf("[%x]\n", res)
|
||||||
@ -36,12 +36,12 @@ func TestDecrypto(t *testing.T) {
|
|||||||
pp.Init([]byte("Hana"))
|
pp.Init([]byte("Hana"))
|
||||||
res, err := pp.Encrypto([]byte("Just One Test!"))
|
res, err := pp.Encrypto([]byte("Just One Test!"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
res, err = pp.Decrypto(res)
|
res, err = pp.Decrypto(res)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("[%s]\n", string(res))
|
fmt.Printf("[%s]\n", string(res))
|
||||||
|
Loading…
Reference in New Issue
Block a user