aboutsummaryrefslogtreecommitdiff
path: root/luhn/luhn_test.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-08-30 01:43:12 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2019-08-30 01:43:12 +0300
commit878cb24695b7d39fa9de65a1e164abc84dc67ead (patch)
tree73946dd08310c2a3b7535297906a4ff5535db756 /luhn/luhn_test.go
parentb0fba45d68c9ec6c2274ebd61b28ca22bb5deff6 (diff)
Added Damm algorithm
Diffstat (limited to 'luhn/luhn_test.go')
-rw-r--r--luhn/luhn_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/luhn/luhn_test.go b/luhn/luhn_test.go
index ea36119..24e57f2 100644
--- a/luhn/luhn_test.go
+++ b/luhn/luhn_test.go
@@ -14,7 +14,7 @@ func TestLuhn(t *testing.T) {
}
for num, result := range samples {
if err := Check(num); err != result {
- t.Errorf("Expected %+v actual %+v", result, err)
+ t.Errorf("Expected %+v actual %+v for %s", result, err, num)
}
}
}