Work in progress with marshalling in Python bindings, trying to get Type_str to work without segfaulting

This commit is contained in:
John J. Camilleri
2021-09-06 23:49:53 +02:00
parent b7cddf206b
commit 5b96ede199
4 changed files with 78 additions and 25 deletions

View File

@@ -103,6 +103,9 @@ def test_readType_inequality_1():
def test_readType_inequality_2():
assert pgf.readType("A -> B") != pgf.readType("B->B")
def test_Type_str_1():
assert str(pgf.readType("A-> B")) == "A -> B"
def test_functionType_1(PGF):
assert PGF.functionType("z") == pgf.readType("N")