mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-16 08:52:42 +00:00
gofmt: bring internal/ and cmd/ back to gofmt -l clean
Mechanical `gofmt -w ./internal ./cmd`. Mostly struct-field realignment that had drifted, plus a few trailing-newline fixes. No behaviour change — gofmt is semantics-preserving, and build/vet/test are green either side. Split out from the code-review fixes that follow so those stay reviewable instead of hiding inside a wall of realignment.
This commit is contained in:
@@ -20,13 +20,13 @@ func TestFxParseConvert(t *testing.T) {
|
||||
{[]string{"1500", "EUR/USD"}, 1500, "EUR", "USD", false},
|
||||
{[]string{"1500", "JPY", "USD"}, 1500, "JPY", "USD", false},
|
||||
|
||||
{[]string{"USD", "EUR"}, 0, "", "", true}, // no amount
|
||||
{[]string{"1500", "USD"}, 0, "", "", true}, // missing quote
|
||||
{[]string{"1500", "USD", "USD"}, 0, "", "", true}, // same currency
|
||||
{[]string{"1500", "ZZZ", "EUR"}, 0, "", "", true}, // unknown currency
|
||||
{[]string{"1500", "USD", "EUR", "JPY"}, 0, "", "", true}, // too many currencies
|
||||
{[]string{"1500", "100", "USD", "EUR"}, 0, "", "", true}, // multiple amounts
|
||||
{[]string{"-100", "USD", "EUR"}, 0, "", "", true}, // negative
|
||||
{[]string{"USD", "EUR"}, 0, "", "", true}, // no amount
|
||||
{[]string{"1500", "USD"}, 0, "", "", true}, // missing quote
|
||||
{[]string{"1500", "USD", "USD"}, 0, "", "", true}, // same currency
|
||||
{[]string{"1500", "ZZZ", "EUR"}, 0, "", "", true}, // unknown currency
|
||||
{[]string{"1500", "USD", "EUR", "JPY"}, 0, "", "", true}, // too many currencies
|
||||
{[]string{"1500", "100", "USD", "EUR"}, 0, "", "", true}, // multiple amounts
|
||||
{[]string{"-100", "USD", "EUR"}, 0, "", "", true}, // negative
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
|
||||
Reference in New Issue
Block a user