1
0
forked from GitHub/gf-core

update the testsuite

This commit is contained in:
Krasimir Angelov
2024-04-11 10:48:44 +02:00
parent 82308426c6
commit 2f7c65c207
2 changed files with 5 additions and 5 deletions

View File

@@ -100,13 +100,13 @@ def test_categories(PGF):
assert PGF.categories == ["Float","Int","N","P","S","String"]
def test_functions(PGF):
assert PGF.functions == ['c', 'floatLit', 'ind', 'intLit', 'nat', 's', 'stringLit', 'z']
assert PGF.functions == ['c', 'floatLit', 'imp', 'ind', 'intLit', 'nat', 's', 'stringLit', 'z']
def test_functionsByCat_1(PGF):
assert PGF.functionsByCat("N") == ["s","z"]
def test_functionsByCat_2(PGF):
assert PGF.functionsByCat("S") == ["c", 'floatLit', 'intLit', 'stringLit']
assert PGF.functionsByCat("S") == ["c", 'floatLit', 'imp', 'intLit', 'stringLit']
def test_functionsByCat_non_existent(PGF):
assert PGF.functionsByCat("X") == []