From 3803796d2e1c75fb337c8d04c05426fa59d6446c Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 23 Dec 2024 16:19:30 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B9=20Feed=20the=20hobgoblins=20(delin?= =?UTF-8?q?t).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_classical_all.py | 12 ++++++------ tests/test_numwords.py | 8 ++++---- tests/test_pwd.py | 36 ++++++++++++++++++------------------ 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/tests/test_classical_all.py b/tests/test_classical_all.py index 348e0ff..6b36d02 100644 --- a/tests/test_classical_all.py +++ b/tests/test_classical_all.py @@ -8,9 +8,9 @@ def test_classical(self): # DEFAULT... assert p.plural_noun("error", 0) == "errors", "classical 'zero' not active" - assert ( - p.plural_noun("wildebeest") == "wildebeests" - ), "classical 'herd' not active" + assert p.plural_noun("wildebeest") == "wildebeests", ( + "classical 'herd' not active" + ) assert p.plural_noun("Sally") == "Sallys", "classical 'names' active" assert p.plural_noun("brother") == "brothers", "classical others not active" assert p.plural_noun("person") == "people", "classical 'persons' not active" @@ -30,9 +30,9 @@ def test_classical(self): p.classical(all=False) assert p.plural_noun("error", 0) == "errors", "classical 'zero' not active" - assert ( - p.plural_noun("wildebeest") == "wildebeests" - ), "classical 'herd' not active" + assert p.plural_noun("wildebeest") == "wildebeests", ( + "classical 'herd' not active" + ) assert p.plural_noun("Sally") == "Sallies", "classical 'names' not active" assert p.plural_noun("brother") == "brothers", "classical others not active" assert p.plural_noun("person") == "people", "classical 'persons' not active" diff --git a/tests/test_numwords.py b/tests/test_numwords.py index d75932f..7b17cd7 100644 --- a/tests/test_numwords.py +++ b/tests/test_numwords.py @@ -198,19 +198,19 @@ def test_array(): ], [ "123456", - "one hundred and twenty-three thousand, " "four hundred and fifty-six", + "one hundred and twenty-three thousand, four hundred and fifty-six", "one, two, three, four, five, six", "twelve, thirty-four, fifty-six", "one twenty-three, four fifty-six", - "one hundred and twenty-three thousand, " "four hundred and fifty-sixth", + "one hundred and twenty-three thousand, four hundred and fifty-sixth", ], [ "0123456", - "one hundred and twenty-three thousand, " "four hundred and fifty-six", + "one hundred and twenty-three thousand, four hundred and fifty-six", "zero, one, two, three, four, five, six", "zero one, twenty-three, forty-five, six", "zero twelve, three forty-five, six", - "one hundred and twenty-three thousand, " "four hundred and fifty-sixth", + "one hundred and twenty-three thousand, four hundred and fifty-sixth", ], [ "1234567", diff --git a/tests/test_pwd.py b/tests/test_pwd.py index ff8064c..630b065 100644 --- a/tests/test_pwd.py +++ b/tests/test_pwd.py @@ -262,9 +262,9 @@ def test_pl(self): (p.plural_adj, "cat's", "cats'"), (p.plural_adj, "child's", "children's"), ): - assert ( - fn(sing) == plur - ), f'{fn.__name__}("{sing}") == "{fn(sing)}" != "{plur}"' + assert fn(sing) == plur, ( + f'{fn.__name__}("{sing}") == "{fn(sing)}" != "{plur}"' + ) for sing, num, plur in ( ("cow", 1, "cow"), @@ -341,9 +341,9 @@ def test_gender(self): ("to her", "to them"), ("to herself", "to themselves"), ): - assert ( - p.singular_noun(plur) == sing - ), f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}" + assert p.singular_noun(plur) == sing, ( + f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}" + ) assert p.inflect("singular_noun('%s')" % plur) == sing p.gender("masculine") @@ -354,9 +354,9 @@ def test_gender(self): ("to him", "to them"), ("to himself", "to themselves"), ): - assert ( - p.singular_noun(plur) == sing - ), f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}" + assert p.singular_noun(plur) == sing, ( + f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}" + ) assert p.inflect("singular_noun('%s')" % plur) == sing p.gender("gender-neutral") @@ -367,9 +367,9 @@ def test_gender(self): ("to them", "to them"), ("to themself", "to themselves"), ): - assert ( - p.singular_noun(plur) == sing - ), f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}" + assert p.singular_noun(plur) == sing, ( + f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}" + ) assert p.inflect("singular_noun('%s')" % plur) == sing p.gender("neuter") @@ -380,9 +380,9 @@ def test_gender(self): ("to it", "to them"), ("to itself", "to themselves"), ): - assert ( - p.singular_noun(plur) == sing - ), f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}" + assert p.singular_noun(plur) == sing, ( + f"singular_noun({plur}) == {p.singular_noun(plur)} != {sing}" + ) assert p.inflect("singular_noun('%s')" % plur) == sing with pytest.raises(BadGenderError): @@ -612,9 +612,9 @@ def test__plnoun(self): ("zoo", "zoos"), ("tomato", "tomatoes"), ): - assert ( - p._plnoun(sing) == plur - ), f'p._plnoun("{sing}") == {p._plnoun(sing)} != "{plur}"' + assert p._plnoun(sing) == plur, ( + f'p._plnoun("{sing}") == {p._plnoun(sing)} != "{plur}"' + ) assert p._sinoun(plur) == sing, f'p._sinoun("{plur}") != "{sing}"'