A SimpleCardBrand mix Project


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

  1. Run credo for static analysis.

  2. Implement git pre-commit tasks.

  3. Implement documentation.

  4. More brands.

  5. Implement failing tests.

  6. Publish(?)