Fix conversion from PyUnicode to PgfText. Remove Python 2-style PyString macros.

This commit is contained in:
John J. Camilleri
2021-09-09 23:41:55 +02:00
parent 4739e3d779
commit 2f51c8471c
6 changed files with 69 additions and 56 deletions

View File

@@ -105,8 +105,8 @@ def test_readType_inequality_1():
def test_readType_inequality_2():
assert pgf.readType("A -> B") != pgf.readType("B->B")
# def test_readType_str():
# assert str(pgf.readType("A-> B")) == "A -> B"
def test_readType_str():
assert str(pgf.readType("A-> BÄ")) == "A -> BÄ"
def test_functionType_1(PGF):
assert PGF.functionType("z") == pgf.readType("N")