From 92cf5fa5f0708b055223c996fa875a58ce89dcec Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Thu, 25 Mar 2021 17:20:41 +0300 Subject: [PATCH] use ISO code for Mexican peso (#25) --- core/utils.go | 1 - core/utils_test.go | 1 + go.mod | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/utils.go b/core/utils.go index df03ef7..f7430e9 100644 --- a/core/utils.go +++ b/core/utils.go @@ -61,7 +61,6 @@ var defaultCurrencies = map[string]string{ "cop": "COL$", "crc": "₡", "cup": "$MN", - "mxn": "NP$", "nio": "C$", "pab": "B/", "pyg": "₲", diff --git a/core/utils_test.go b/core/utils_test.go index a5aa0bb..1750188 100644 --- a/core/utils_test.go +++ b/core/utils_test.go @@ -252,6 +252,7 @@ func TestUtils_GetCurrencySymbol(t *testing.T) { } assert.Equal(t, "XAG", GetCurrencySymbol("xag")) + assert.Equal(t, "MXN", GetCurrencySymbol("mxn")) } func TestUtils_ReplaceMarkdownSymbols(t *testing.T) { diff --git a/go.mod b/go.mod index 2b3ed33..9525501 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.12 require ( github.com/DATA-DOG/go-sqlmock v1.3.3 github.com/aws/aws-sdk-go v1.25.14 - github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 + github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 // indirect github.com/denisenkom/go-mssqldb v0.0.0-20190830225923-3302f0226fbd // indirect github.com/getsentry/raven-go v0.2.0 github.com/gin-contrib/multitemplate v0.0.0-20190914010127-bba2ccfe37ec