Skip to content

Fix toOrdinal() and the test for Dutch#63

Open
huisman wants to merge 1 commit intoCenterForAssessment:masterfrom
huisman:fix_dutch
Open

Fix toOrdinal() and the test for Dutch#63
huisman wants to merge 1 commit intoCenterForAssessment:masterfrom
huisman:fix_dutch

Conversation

@huisman
Copy link
Copy Markdown
Contributor

@huisman huisman commented Feb 9, 2025

The way the suffix for Dutch ordinals is calculated didn't give the right results for certain numbers.
The test in test_toOrdinal_dutch.R contained the wrong suffix for the numbers 0, 10, 22:27 and 29.

One of the tricky bits is that the suffix for 0 ('de') differs from the suffixes for 100 ('ste').
I rewrote the logic for calculating the suffix and added some comments.
I also added a test for some numbers >= 100.

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.

1 participant