mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
19 lines
386 B
Go
19 lines
386 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestEncryptOrDecrypt(t *testing.T) {
|
|
reValue := EncryptOrDecrypt(true)
|
|
if reValue != "encrypted" {
|
|
t.Error(
|
|
"Test failed - Tools/Config/Config_test.go - EncryptOrDecrypt Error",
|
|
)
|
|
}
|
|
reValue = EncryptOrDecrypt(false)
|
|
if reValue != "decrypted" {
|
|
t.Error(
|
|
"Test failed - Tools/Config/Config_test.go - EncryptOrDecrypt Error",
|
|
)
|
|
}
|
|
}
|