Add getFunctionsByCat to Python bindings

This commit is contained in:
John J. Camilleri
2021-08-30 23:25:18 +02:00
parent b7bd5a4561
commit aecaa422ec
2 changed files with 47 additions and 33 deletions

View File

@@ -75,3 +75,11 @@ def test_categories(PGF):
def test_functions(PGF):
assert PGF.functions == ["c","ind","s","z"]
def test_functionsByCat_1(PGF):
assert PGF.functionsByCat("N") == ["s","z"]
def test_functionsByCat_2(PGF):
assert PGF.functionsByCat("S") == ["c"]
def test_functionsByCat_non_existant(PGF):
assert PGF.functionsByCat("X") == []