mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
Changed incorrect names
This commit is contained in:
committed by
Adrian Gallagher
parent
68cf098e9c
commit
a2c0e52f93
@@ -31,24 +31,24 @@ func TestGetEnabledCurrencies(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSetEnabled(t *testing.T) {
|
||||
GetEnabledCurrencies := ExchangeBase{
|
||||
SetEnabled := ExchangeBase{
|
||||
Name: "TESTNAME",
|
||||
Enabled: false,
|
||||
}
|
||||
|
||||
GetEnabledCurrencies.SetEnabled(true)
|
||||
if !GetEnabledCurrencies.Enabled {
|
||||
SetEnabled.SetEnabled(true)
|
||||
if !SetEnabled.Enabled {
|
||||
t.Error("Test Failed - Exchange SetEnabled(true) did not set boolean")
|
||||
}
|
||||
}
|
||||
|
||||
func TestIsEnabled(t *testing.T) {
|
||||
GetEnabledCurrencies := ExchangeBase{
|
||||
IsEnabled := ExchangeBase{
|
||||
Name: "TESTNAME",
|
||||
Enabled: false,
|
||||
}
|
||||
|
||||
if GetEnabledCurrencies.IsEnabled() {
|
||||
if IsEnabled.IsEnabled() {
|
||||
t.Error("Test Failed - Exchange IsEnabled() did not return correct boolean")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user