Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
zfighou committed Sep 5, 2023
1 parent 645d2a4 commit 862fc99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DEdge.Cardidy/Model/Cards.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ internal record Maestro : ALuhnCard
{
public Maestro() : base(CardType.Maestro, new[] { 5018, 5020, 5038, 5893, 6304, 6759, 6761, 6762, 6763,
//https://www.freebinchecker.com/belgium_maestro-bin-list-brand?hl=fr
6703,6799,6775,6711,6708,6705,6709,6390,6792,6706
6703,6799,6775,6711,6708,6705,6709,6390,6792,6706,6704
}, From12To19) { }
}

Expand Down
4 changes: 2 additions & 2 deletions src/Tests/IdentifyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public class IdentifyTests
[TestCase("5018-7100009012345", ExpectedResult = CardType.Maestro)]
[TestCase("5018-71000090123456", ExpectedResult = CardType.Maestro)]
[TestCase("5018-710000901234567", ExpectedResult = CardType.Maestro)]
[TestCase("67044- 4444444449", ExpectedResult = CardType.Maestro)]
[TestCase("670300- 0000000000003", ExpectedResult = CardType.Maestro)]
[TestCase("6704-44444444449", ExpectedResult = CardType.Maestro)]
[TestCase("6703-000000000000003", ExpectedResult = CardType.Maestro)]
public CardType ShouldIdentifyAsMaestro(string cardNumber) => Cardidy.Identify(cardNumber, useCheck: false, ignoreNoise: true).First();

[TestCase("676770-0000901089", ExpectedResult = CardType.MaestroUk)]
Expand Down

0 comments on commit 862fc99

Please sign in to comment.