Skip to content

Commit 201906c

Browse files
committed
Clean the newlines
1 parent 94c248d commit 201906c

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

commonregex_test.go

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ func TestCommonRegex_MD5Hexes(t *testing.T) {
333333
"00000000000000000000000000000000",
334334
"fffFFFfFFfFFFfFFFFfFfFfffffFfFFF",
335335
}
336-
337336
failingTests := []string{
338337
"b5ab01fad5a008d436f76aafc896f9c600000000",
339338
"",
@@ -360,7 +359,6 @@ func TestCommonRegex_SHA1Hexes(t *testing.T) {
360359
"0000000000000000000000000000000000000000",
361360
"fffFFFfFFfFFFfFFFFfFfFfffffFfFFFffffFFFF",
362361
}
363-
364362
failingTests := []string{
365363
"b5ab01fad5a008d436f76aafc896f9c600000000202020202020202020202020",
366364
"",
@@ -387,7 +385,6 @@ func TestCommonRegex_SHA256Hexes(t *testing.T) {
387385
"0000000000000000000000000000000000000000000000000000000000000000",
388386
"fffFFFfFFfFFFfFFFFfFfFfffffFfFFFffffFFFFfffffFFFFFffFFffFFffFFff",
389387
}
390-
391388
failingTests := []string{
392389
"3f4146a1d0b5dac26562ff7dc6248573f4e996cf764a0f517318ff398dcfa7920",
393390
"",
@@ -415,7 +412,6 @@ func TestCommonRegex_GUIDs(t *testing.T) {
415412
"88a310ed-0ac0-4a3d-b3a2-958fa291d061",
416413
"27143ecab8a440cda6fb6effcf9b3c75",
417414
}
418-
419415
failingTests := []string{
420416
"88a310ed-0ac0_4a3d_b3a2_958fa291d061",
421417
"88a310ed 0ac0 4a3d b3a2 958fa291d061",
@@ -446,7 +442,6 @@ func TestCommonRegex_ISBN13s(t *testing.T) {
446442
"978-1-56619-909-4",
447443
"133-1-12144-909-9",
448444
}
449-
450445
failingTests := []string{
451446
"1-56619-909-3",
452447
"1-33342-100-1",
@@ -472,7 +467,6 @@ func TestCommonRegex_ISBN10s(t *testing.T) {
472467
"1-33342-100-1",
473468
"2-33342-362-9",
474469
}
475-
476470
failingTests := []string{
477471
"978-3-16-148410-0",
478472
"978-1-56619-909-4",
@@ -482,6 +476,7 @@ func TestCommonRegex_ISBN10s(t *testing.T) {
482476
parsed := ISBN10s(test)
483477
if reflect.DeepEqual(parsed, []string{test}) == false {
484478
t.Errorf("%s is not matched with %s", parsed, []string{test})
479+
w
485480
}
486481
}
487482
for _, test := range failingTests {
@@ -497,7 +492,6 @@ func TestCommonRegex_VISACreditCards(t *testing.T) {
497492
"4111 1111 1111 1111",
498493
"4222 2222 2222 2222",
499494
}
500-
501495
failingTests := []string{
502496
"5500 0000 0000 0004",
503497
"3400 0000 0000 009",
@@ -522,7 +516,6 @@ func TestCommonRegex_MCCreditCards(t *testing.T) {
522516
"5500 0000 0000 0004",
523517
"5500 3334 0000 1234",
524518
}
525-
526519
failingTests := []string{
527520
"4111 1111 1111 1111",
528521
"4222 2222 2222 2222",
@@ -549,7 +542,6 @@ func TestCommonRegex_MACAddresses(t *testing.T) {
549542
"F8:2F:A4:FE:76:D2",
550543
"3D-F2-C9-A6-B3-4F",
551544
}
552-
553545
failingTests := []string{
554546
"3D:F2:C9:A6:B3:4G",
555547
"f0:2f:P4:Be:96:J5",
@@ -574,19 +566,16 @@ func TestCommonRegex_IBANs(t *testing.T) {
574566
"MU17BOMM0101101030300200000MUR",
575567
"NO9386011117947",
576568
}
577-
578569
failingTests := []string{
579570
"424220041010050500013M02606",
580571
"GB29RBOS601613",
581572
}
582-
583573
for _, test := range tests {
584574
parsed := IBANs(test)
585575
if reflect.DeepEqual(parsed, []string{test}) == false {
586576
t.Errorf("%s is not matched with %s", parsed, []string{test})
587577
}
588578
}
589-
590579
for _, test := range failingTests {
591580
parsed := IBANs(test)
592581
if reflect.DeepEqual(parsed, []string{test}) {

0 commit comments

Comments
 (0)