diff options
author | benselme <benselme@gmail.com> | 2015-01-08 19:40:28 -0500 |
---|---|---|
committer | benselme <benselme@gmail.com> | 2015-01-08 19:40:28 -0500 |
commit | fb808af2f681232c14b15f39149ff2e190dfcaca (patch) | |
tree | cb9342982c11397aa576118e08a99e8fbab916fb /tests | |
parent | e463ce92ff950917ad632c36c07b403d2410df98 (diff) | |
download | babel-fb808af2f681232c14b15f39149ff2e190dfcaca.tar.gz |
More stuff merged from mitsuhiko's cldr-24 branch
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_plural.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_plural.py b/tests/test_plural.py index 489c0ef..166e227 100644 --- a/tests/test_plural.py +++ b/tests/test_plural.py @@ -27,6 +27,11 @@ def test_plural_rule(): assert rule.rules == {'one': 'n is 1'} +def test_plural_other_is_ignored(): + rule = plural.PluralRule({'one': 'n is 1', 'other': '@integer 2'}) + assert rule(1) == 'one' + + def test_to_javascript(): assert (plural.to_javascript({'one': 'n is 1'}) == "(function(n) { return (n == 1) ? 'one' : 'other'; })") |