Skip to content

Commit

Permalink
fix(lib): change "Eightteen" to "Eighteen" (#66)
Browse files Browse the repository at this point in the history
* Change "Eightteen" to "Eighteen"

Fix #65
  • Loading branch information
prjailani authored Oct 7, 2021
1 parent 138788f commit ef89fbe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/Dedge.Cardizer/Dedge.Cardizer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ type From12To19 =
| Fifteen = 15
| Sixteen = 16
| Seventeen = 17
| Eightteen = 18
| Eighteen = 18
| Nineteen = 19

type From16To19 =
| Random = 0
| Sixteen = 16
| Seventeen = 17
| Eightteen = 18
| Eighteen = 18
| Nineteen = 19

type From16To19Skip17 =
Expand All @@ -44,7 +44,7 @@ type DinersClubInternationalLengthOptions =
| Fifteen = 15
| Sixteen = 16
| Seventeen = 17
| Eightteen = 18
| Eighteen = 18
| Nineteen = 19

type Cardizer =
Expand Down
16 changes: 8 additions & 8 deletions src/Tests/Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ let ``Should generate valid Verve`` length expectedLength =
[<Theory>]
[<InlineData(From16To19.Sixteen, 16)>]
[<InlineData(From16To19.Seventeen, 17)>]
[<InlineData(From16To19.Eightteen, 18)>]
[<InlineData(From16To19.Eighteen, 18)>]
[<InlineData(From16To19.Nineteen, 19)>]
let ``Should generate valid Mir`` length expectedLength =
let card = Cardizer.NextMir length
Expand All @@ -71,7 +71,7 @@ let ``Should generate valid Mir`` length expectedLength =
[<Theory>]
[<InlineData(From16To19.Sixteen, 16)>]
[<InlineData(From16To19.Seventeen, 17)>]
[<InlineData(From16To19.Eightteen, 18)>]
[<InlineData(From16To19.Eighteen, 18)>]
[<InlineData(From16To19.Nineteen, 19)>]
let ``Should generate valid Jcb`` length expectedLength =
let card = Cardizer.NextJcb length
Expand All @@ -94,7 +94,7 @@ let ``Should generate valid Amex`` () =
[<Theory>]
[<InlineData(From16To19.Sixteen, 16)>]
[<InlineData(From16To19.Seventeen, 17)>]
[<InlineData(From16To19.Eightteen, 18)>]
[<InlineData(From16To19.Eighteen, 18)>]
[<InlineData(From16To19.Nineteen, 19)>]
let ``Should generate valid Discover`` length expectedLength =
let card = Cardizer.NextDiscover length
Expand Down Expand Up @@ -168,7 +168,7 @@ let ``Should generate valid RuPay`` () =
[<InlineData(DinersClubInternationalLengthOptions.Fifteen, 15)>]
[<InlineData(DinersClubInternationalLengthOptions.Sixteen, 16)>]
[<InlineData(DinersClubInternationalLengthOptions.Seventeen, 17)>]
[<InlineData(DinersClubInternationalLengthOptions.Eightteen, 18)>]
[<InlineData(DinersClubInternationalLengthOptions.Eighteen, 18)>]
[<InlineData(DinersClubInternationalLengthOptions.Nineteen, 19)>]
let ``Should generate valid DinersClubInternational`` length expectedLength =
let card =
Expand All @@ -185,7 +185,7 @@ let ``Should generate valid DinersClubInternational`` length expectedLength =
[<InlineData(From12To19.Fifteen, 15)>]
[<InlineData(From12To19.Sixteen, 16)>]
[<InlineData(From12To19.Seventeen, 17)>]
[<InlineData(From12To19.Eightteen, 18)>]
[<InlineData(From12To19.Eighteen, 18)>]
[<InlineData(From12To19.Nineteen, 19)>]
let ``Should generate valid Maestro`` length expectedLength =
let card = Cardizer.NextMaestro length
Expand Down Expand Up @@ -240,7 +240,7 @@ let ``Should generate valid Dankort`` () =
[<Theory>]
[<InlineData(From16To19.Sixteen, 16)>]
[<InlineData(From16To19.Seventeen, 17)>]
[<InlineData(From16To19.Eightteen, 18)>]
[<InlineData(From16To19.Eighteen, 18)>]
[<InlineData(From16To19.Nineteen, 19)>]
let ``Should generate valid InterPayment`` length expectedLength =
let card = Cardizer.NextInterPayment length
Expand All @@ -251,7 +251,7 @@ let ``Should generate valid InterPayment`` length expectedLength =
[<Theory>]
[<InlineData(From16To19.Sixteen, 16)>]
[<InlineData(From16To19.Seventeen, 17)>]
[<InlineData(From16To19.Eightteen, 18)>]
[<InlineData(From16To19.Eighteen, 18)>]
[<InlineData(From16To19.Nineteen, 19)>]
let ``Should generate valid UnionPay`` length expectedLength =
let card = Cardizer.NextUnionPay length
Expand All @@ -278,7 +278,7 @@ let ``Should generate valid LankaPay`` () =
[<Theory>]
[<InlineData(From16To19.Sixteen, 16)>]
[<InlineData(From16To19.Seventeen, 17)>]
[<InlineData(From16To19.Eightteen, 18)>]
[<InlineData(From16To19.Eighteen, 18)>]
[<InlineData(From16To19.Nineteen, 19)>]
let ``Should generate valid Laser`` length expectedLength =
let card = Cardizer.NextLaser length
Expand Down

0 comments on commit ef89fbe

Please sign in to comment.