Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple tests for lang_DK.py #286

Merged
merged 2 commits into from
Dec 31, 2019
Merged

Conversation

btharper
Copy link
Contributor

Fixes # by...

Work toward #109

Changes proposed in this pull request:

  • Add tests for lang_DK.py

Status

  • READY
  • HOLD
  • WIP (Work-In-Progress)

How to verify this change

Increase present in coverage report

Additional notes

  • The code DK seems to refer to the country of Denmark, not the language of Danish which has the locale abbreviation da (da_DK is also valid). Should this be updated as well?

  • Further values seem incorrect from what I can quickly find online, I could use review or help from someone who knows more about the language.

num2words(1000, lang='dk', to='ordinal') == 'ettusindte'
num2words(12345, lang='dk', to='ordinal') == 'tolvtusinde og trehundrede og femogfyrre'
but what I can find shows the values should be 'et tusind' and 'tolv tusinde tre hundrede og femogfyrre' respectively. As I'm not sure which is correct (if not both), I don't want to add any failing test cases I can't validate.

@coveralls
Copy link

coveralls commented Oct 26, 2019

Pull Request Test Coverage Report for Build 827

  • 15 of 15 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.5%) to 94.918%

Totals Coverage Status
Change from base Build 826: 0.5%
Covered Lines: 15039
Relevant Lines: 15609

💛 - Coveralls

@erozqba erozqba merged commit e674ce7 into savoirfairelinux:master Dec 31, 2019
@btharper btharper deleted the test_dk branch December 31, 2019 15:27
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.

None yet

3 participants