Skip to content

Commit

Permalink
Tests and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Menendez6 committed Oct 28, 2024
1 parent 0fe6352 commit bbf7fcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion regimes/hu/identities.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import (
)

const (
// When an individual belongs to a group, the user group tax number must be included in a separate field.
// IdentityKeyGroupNumber is the key used when a person belongs to a VAT group
// The main tax identity field contains the vat number of the group and it is required to include
// the vat number of the group member, which is included in identites.
IdentityKeyGroupNumber cbc.Key = "hu-group-number"
)

Expand Down
2 changes: 0 additions & 2 deletions regimes/hu/identities_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ func TestValidateGroupId(t *testing.T) {
{"Empty code", "", ""},
{"Invalid length (5)", "12345", "invalid length"},
{"Invalid length (10)", "1234567890", "invalid length"},
{"Invalid check digit", "12345678", "checksum mismatch"},
{"Invalid VAT code", "21114445123", "invalid VAT code"},
{"Invalid area code", "82713452101", "invalid area code"},
{"Valid code (8 chars)", "98109858", ""},
{"Valid code (11 chars)", "88212131403", ""},
}
for _, tt := range tests {
Expand Down

0 comments on commit bbf7fcc

Please sign in to comment.