Add functionIsConstructor function

This commit is contained in:
John J. Camilleri
2021-09-13 15:15:16 +02:00
parent c83a31708d
commit 3d25efd38a
3 changed files with 38 additions and 3 deletions

View File

@@ -100,6 +100,18 @@ def test_categoryContext_3(PGF):
def test_categoryContext_4(PGF):
assert PGF.categoryContext("X") == []
def test_functionIsConstructor_1(PGF):
assert PGF.functionIsConstructor("s") == True
def test_functionIsConstructor_2(PGF):
assert PGF.functionIsConstructor("z") == True
def test_functionIsConstructor_3(PGF):
assert PGF.functionIsConstructor("c") == True
def test_functionIsConstructor_4(PGF):
assert PGF.functionIsConstructor("ind") == False
# types
def test_readType_invalid():