Created a mix project.
Added guards to card_brand
that check for String and Integer parameters then
moved the single file into a mix project.
Every card brand has its own test file. The tests validate against the information on the Wikipedia page. Each brand is tested for documented prefix and account number length.
As suspected, there were a few lurking bugs which have now been corrected.
Next Steps
Run credo for static analysis.
Implement git pre-commit tasks.
Implement documentation.
More brands.
Implement failing tests.
Publish(?)