Debian Codegraph @

bankinfo/data_test.go

raw
1 package bankinfo
2
3 import (
4 "strings"
5 "testing"
6 )
7
8 func TestBankDataConsistency(t *testing.T) {
9 var errs []string
10 for _, info := range data {
11 _, err := hbciVersion(info.VersionName, info.VersionNumber)
12 if err != nil {
13 errs = append(errs, err.Error())
14 }
15 }
16
17 if len(errs) != 0 {
18 t.Logf("Expected no errors, got:\n\t%s", strings.Join(errs, "\n\t"))
19 t.Fail()
20 }
21 }