mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-30 07:26:46 +00:00
Improve currency pair handling code
Fixes these happy little accidents: 1) Config: Actually use enabled pairs for config.GetEnabledPairs 2) Pair format: Handle edge case for pairs DASHKRW vs DSHKRW and improve testing
This commit is contained in:
@@ -401,6 +401,7 @@ func TestGetEnabledCurrencies(t *testing.T) {
|
||||
format := config.CurrencyPairFormatConfig{
|
||||
Delimiter: "-",
|
||||
Index: "",
|
||||
Uppercase: true,
|
||||
}
|
||||
|
||||
b.RequestCurrencyPairFormat = format
|
||||
@@ -466,6 +467,7 @@ func TestGetAvailableCurrencies(t *testing.T) {
|
||||
format := config.CurrencyPairFormatConfig{
|
||||
Delimiter: "-",
|
||||
Index: "",
|
||||
Uppercase: true,
|
||||
}
|
||||
|
||||
b.RequestCurrencyPairFormat = format
|
||||
|
||||
Reference in New Issue
Block a user