summaryrefslogtreecommitdiff
path: root/tests/test_plural.py
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2022Aarni Koskela2022-01-251-1/+1
|
* Remove redundant _compat.pyHugo van Kemenade2021-09-141-1/+1
|
* Become 2.9.1Aarni Koskela2021-04-281-1/+1
| | | | | * Update copyright year * Update changelog
* Bump copyright year from 2019 to 2020Aarni Koskela2020-11-111-1/+1
|
* Bump copyright year from 2018 to 2019Aarni Koskela2019-05-271-1/+1
|
* Rephrase copyright headers to link to the LICENSE file instead of COPYINGauthorsAarni Koskela2018-02-021-1/+1
| | | | Fixes #398
* Update copyright header years, and include the Babel teamAarni Koskela2018-02-021-1/+1
|
* Fix float conversion in `extract_operands` (and the relevant test)Aarni Koskela2016-07-151-9/+15
| | | | Fixes #421
* Simplify the selection of decimal implementationIsaac Jurado2016-05-291-11/+11
| | | | | | | Instead of selecting individual symbols, expose only the chosen decimal module through babel._compat. This forces Babel to always use "decimal." prefix. Howver, it will simplify the code for users that need to manipulate the decimal context.
* Apply pre-commit fixes.Lukas Balaga2016-02-271-1/+3
|
* Compile noninteger TR35 operands to zeroes when emitting GettextAarni Koskela2016-01-221-1/+15
| | | | | | | See http://www.unicode.org/reports/tr35/tr35-numbers.html#Operands See https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html Fixes #287
* Update to CLDR 28 (with test updates)Aarni Koskela2015-12-211-4/+4
| | | | | | | | | | * Aside from the usual data changes, the provisional aa locale is no longer, so we can't use it for tests. Instead, ii is used (chosen by virtue of ii.xml being fairly small, i.e. probably as incomplete as aa). * ms_Latn_SG is not in use anymore either; use sr_Latn_ME instead. Closes #226 Closes #290
* tests: Use the automatically chosen Decimal classIsaac Jurado2015-10-141-11/+12
| | | | | | Now that the babel._compat module can automatically select a faster decimal implementation if available, be more consistent across the rest of the code when dealing with Decimal instances.
* Make sure extract_operands is always called when using plural.to_python, add ↵benselme2015-01-091-4/+37
| | | | tests to check operands eval works
* plural.extract_operands function and testsbenselme2015-01-091-2/+21
|
* PEP8benselme2015-01-091-7/+5
|
* More stuff merged from mitsuhiko's cldr-24 branchbenselme2015-01-081-0/+5
|
* More plural._Parser testsbenselme2015-01-081-3/+25
|
* More extraction in _Parser, more testsbenselme2015-01-081-1/+34
|
* Extract PluralRule.test and add testsbenselme2015-01-081-0/+17
|
* Include Armin Ronacher's work on PluralRule mitsuhiko/babel@774047abenselme2015-01-081-1/+1
|
* Extract plural rule tokenization function and add testsbenselme2015-01-081-0/+28
|
* use fallback plural if none is defined in CLDRAlex Morega2014-01-061-0/+8
| | | | fixes #69
* make sure rules are always sortedAlex Morega2013-07-071-1/+1
|
* test for range pluralizationAlex Morega2013-07-061-0/+22
| | | | https://gist.github.com/mitsuhiko/5939731
* remove test suite factoriesAlex Morega2013-07-061-9/+0
|
* copy babel.plural doctests as unit testsAlex Morega2013-07-061-1/+53
|
* move unit tests outside babel packageAlex Morega2013-07-061-0/+27