1
0
forked from GitHub/gf-core

Add PGF.writeToFile. Add categoryProbability, but it seems pgf_category_prob always returns 0.

This commit is contained in:
John J. Camilleri
2021-09-27 11:37:52 +02:00
parent 187ded6d3d
commit 2deae9d402
5 changed files with 60 additions and 2 deletions

View File

@@ -77,6 +77,12 @@ def test_newNGF_existing(NGF):
with pytest.raises(FileExistsError):
newNGF("empty", "./basic.ngf")
# writePGF
def test_writePGF(PGF):
PGF.writeToFile("./copy.pgf")
os.remove("./copy.pgf") # cleanup
# abstract syntax
def test_abstractName(PGF):