Repository navigation
Conversation
Użyj form złożeniowych setek przed tysiącem i milionem. Złóż końcowy liczebnik bez spacji i zachowaj odstęp po wcześniejszej części głównej. Forma jedno zastępuje pierwszo w złożeniu. Nowy plik regresji, bez zmian istniejących testów. Pełny zestaw: 1496 testów zaliczonych. Pokrycie źródeł 97%, języka polskiego 100%, testów 100%. Flake8 dla 140 śledzonych lub nowych plików Pythona i isort zaliczone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Polish ordinal conversion currently raises IndexError for values such as 110000 and 120000. The compound form indexes the one-item cardinal HUNDREDS tuple at position 1. After that lookup is corrected, the formatter also needs to join the compound without spaces and use the combining form 'jedno' rather than 'pierwszo'.
Use the existing ordinal combining forms when a scale follows, and assemble that compound separately from any preceding cardinal words. Examples:
The new regression file covers the affected branches, the million scale, a preceding cardinal group, and unchanged unscaled ordinals. All 1496 tests pass on Python 3.11/Linux. Coverage, Flake8, and isort pass. Existing tests are unchanged.
Found through source inspection and reproduced locally. Prepared with OpenAI Codex assistance. This does not include the separate spelling corrections in #660.