File: test_classical_ancient.py

package info (click to toggle)
python-inflect 7.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 496 kB
  • sloc: python: 4,807; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import inflect


def test_ancient_1():
    p = inflect.engine()

    # DEFAULT...

    assert p.plural_noun("formula") == "formulas"

    # "person" PLURALS ACTIVATED...

    p.classical(ancient=True)
    assert p.plural_noun("formula") == "formulae"

    # OTHER CLASSICALS NOT ACTIVATED...

    assert p.plural_noun("wildebeest") == "wildebeests"
    assert p.plural_noun("error", 0) == "errors"
    assert p.plural_noun("Sally") == "Sallys"
    assert p.plural_noun("brother") == "brothers"
    assert p.plural_noun("person") == "people"