这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@SrzStephen
Copy link
Contributor

@SrzStephen SrzStephen commented Mar 29, 2018

Fixed Failing test (Year of Birth). Now 100% of tests are passing

Removed incorrect entry (lower case b), and added other "look like 13 but mashed together" entries from the German, Greek and Chinese alphabets.

Added tests for the entries that I added.

  Previous comment:
---
  // B just looks like 13 written closer
    "b",
----
b looks nothing like 13, if this is allowed to stay in then the integrity of this package is compromised as this is erroneous behaviour that I will have to catch if I truly want to see if something is 13. I have replaced it with the upper case B, and added the German ß and ẞ because it's 2018 - it's important to be inclusive of other cultures and they kinda look like a 13 if you have bad handwriting.
Added Greek and Chinese variants
Added tests for the additional 13s.
Test for b returns false now, because b does not look like 13
If 2003 is year of birth that would be 15 not 13.
@SrzStephen
Copy link
Contributor Author

SrzStephen commented Mar 29, 2018

This ended up being a slightly bigger patch than i'd anticipated.
This patch also includes fixing a failing test, adding chinese and german support, removing something that is not 13 and the addition of tests for all added lines.

@gytdau
Copy link
Collaborator

gytdau commented Mar 29, 2018

Looks great, thanks for your contribution to our glorious nation!

@gytdau gytdau merged commit dc45975 into jezen:master Mar 29, 2018
@SrzStephen SrzStephen deleted the patch-1 branch March 29, 2018 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants