mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-14 07:19:31 -06:00
Add getFunctionsByCat to Python bindings
This commit is contained in:
@@ -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") == []
|
||||
|
||||
Reference in New Issue
Block a user