Skip to content

Commit

Permalink
Add tests for cross platform
Browse files Browse the repository at this point in the history
  • Loading branch information
wannesm committed Oct 11, 2023
1 parent 801efb8 commit 3516c1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ view-docs: docs
test:
export PYTHONPATH=.;python -m pytest --ignore=venv --ignore-glob="venv_*"

.PHONY: testv
testv:
export PYTHONPATH=.;python -m pytest -s --ignore=venv --ignore-glob="venv_*"

3 changes: 3 additions & 0 deletions tests/test_nnf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,15 @@ def test_psdd1():


def test_dimacs1():
"""This test fails on Windows because of a mismatch between 64b and 32b data types."""
fn_dimacs = here / "rsrc" / "dimacs1.txt"
fn_vtree = here / "rsrc" / "dimacs1.vtree"
fn_vtree_sol = here / "rsrc" / "dimacs1_solution.vtree"
fn_sdd = here / "rsrc" / "dimacs1.sdd"
cli.main(["-c", str(fn_dimacs), "-W", str(fn_vtree), "-R", str(fn_sdd)])
assert filecmp.cmp(fn_vtree, fn_vtree_sol)
with fn_vtree.open("r") as fp:
print(fp.read())


if __name__ == "__main__":
Expand Down

0 comments on commit 3516c1f

Please sign in to comment.