Skip to content

Commit

Permalink
Update ru_RU_test.go
Browse files Browse the repository at this point in the history
Non-breaking spaces in numbers.
  • Loading branch information
Nikolay Turpitko authored Nov 7, 2016
1 parent e7b53cb commit 23da389
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions ru_RU/ru_RU_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -926,27 +926,27 @@ func TestFmtNumber(t *testing.T) {
{
num: 1123456.5643,
v: 2,
expected: "1 123 456,56",
expected: "1 123 456,56",
},
{
num: 1123456.5643,
v: 1,
expected: "1 123 456,6",
expected: "1 123 456,6",
},
{
num: 221123456.5643,
v: 3,
expected: "221 123 456,564",
expected: "221 123 456,564",
},
{
num: -221123456.5643,
v: 3,
expected: "-221 123 456,564",
expected: "-221 123 456,564",
},
{
num: -221123456.5643,
v: 3,
expected: "-221 123 456,564",
expected: "-221 123 456,564",
},
{
num: 0,
Expand Down Expand Up @@ -987,55 +987,55 @@ func TestFmtCurrency(t *testing.T) {
num: 1123456.5643,
v: 2,
currency: currency.USD,
expected: "1 123 456,56 USD",
expected: "1 123 456,56 USD",
},
{
num: 1123456.5643,
v: 1,
currency: currency.USD,
expected: "1 123 456,60 USD",
expected: "1 123 456,60 USD",
},
{
num: 221123456.5643,
v: 3,
currency: currency.USD,
expected: "221 123 456,564 USD",
expected: "221 123 456,564 USD",
},
{
num: -221123456.5643,
v: 3,
currency: currency.USD,
expected: "-221 123 456,564 USD",
expected: "-221 123 456,564 USD",
},
{
num: -221123456.5643,
v: 3,
currency: currency.CAD,
expected: "-221 123 456,564 CAD",
expected: "-221 123 456,564 CAD",
},
{
num: 0,
v: 2,
currency: currency.USD,
expected: "0,00 USD",
expected: "0,00 USD",
},
{
num: -0,
v: 2,
currency: currency.USD,
expected: "0,00 USD",
expected: "0,00 USD",
},
{
num: -0,
v: 2,
currency: currency.CAD,
expected: "0,00 CAD",
expected: "0,00 CAD",
},
{
num: 1.23,
v: 0,
currency: currency.USD,
expected: "1,00 USD",
expected: "1,00 USD",
},
}

Expand All @@ -1061,49 +1061,49 @@ func TestFmtAccounting(t *testing.T) {
num: 1123456.5643,
v: 2,
currency: currency.USD,
expected: "1 123 456,56 USD",
expected: "1 123 456,56 USD",
},
{
num: 1123456.5643,
v: 1,
currency: currency.USD,
expected: "1 123 456,60 USD",
expected: "1 123 456,60 USD",
},
{
num: 221123456.5643,
v: 3,
currency: currency.USD,
expected: "221 123 456,564 USD",
expected: "221 123 456,564 USD",
},
{
num: -221123456.5643,
v: 3,
currency: currency.USD,
expected: "-221 123 456,564 USD",
expected: "-221 123 456,564 USD",
},
{
num: -221123456.5643,
v: 3,
currency: currency.CAD,
expected: "-221 123 456,564 CAD",
expected: "-221 123 456,564 CAD",
},
{
num: -0,
v: 2,
currency: currency.USD,
expected: "0,00 USD",
expected: "0,00 USD",
},
{
num: -0,
v: 2,
currency: currency.CAD,
expected: "0,00 CAD",
expected: "0,00 CAD",
},
{
num: 1.23,
v: 0,
currency: currency.USD,
expected: "1,00 USD",
expected: "1,00 USD",
},
}

Expand Down

0 comments on commit 23da389

Please sign in to comment.