Files
gocryptotrader/tools/config/config_test.go
2017-07-31 11:44:12 +10:00

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",
)
}
}