Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a first draft for automated testing of tptp compliance #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZachJHansen
Copy link
Collaborator

This test generates the problem files for every strong equivalence example in the res directory and saves them in tests/formatting/tptp/out. Then it invokes the tptp4X tool on each one, and unwraps the result. This causes the test to panic when a file is not tptp-compliant.

The PR could be improved by changing the unwrap panic to an assertion about exit status (although maybe the current method is more direct). Also, it would be nice to clear the "out" directory after every example (see commented code) but that isn't strictly necessary.

This can help us close #161

@ZachJHansen ZachJHansen requested a review from teiesti December 6, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TPTP formatter does not produce TPTP compliant files
1 participant