Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Reorder columns for NL bank data
Browse files Browse the repository at this point in the history
  • Loading branch information
fourcube committed Aug 12, 2019
1 parent b0e41b2 commit 50ddc50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions countries/nl.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type NetherlandsFileEntry struct {
// Bankcodes
func NetherlandsRowToEntry(row []string) NetherlandsFileEntry {
return NetherlandsFileEntry{
Bankcode: strings.TrimSpace(row[0]),
Bankcode: strings.TrimSpace(row[1]),
Name: strings.TrimSpace(row[2]),
Bic: strings.TrimSpace(row[1]),
Bic: strings.TrimSpace(row[0]),
}
}
2 changes: 1 addition & 1 deletion countries/nl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package countries
import "testing"

func TestCanConvertSliceToNetherlandsBankEntry(t *testing.T) {
data := []string{"FVLB", "FVLBNL22", "F.VAN LANSCHOT BANKIERS N.V.", ""}
data := []string{"FVLBNL22", "FVLB", "F.VAN LANSCHOT BANKIERS N.V.", ""}
entry := NetherlandsRowToEntry(data)

if entry.Bankcode != "FVLB" {
Expand Down

0 comments on commit 50ddc50

Please sign in to comment.