Skip to content

Conversation

@Cubix1729
Copy link
Member

In this pull request, I did several things:

Firstly, I fixed a bug that caused Formula objects to be modified when the replace_term() method was invoked on them. To fix that, I cloned self to make the object to be returned.

Secondly, I fixed a DeprecationWarning raised by pretty_table in truth_table/base.py. The "constants" for table styles should now be placed under TableStyle (this seems to have appeared with version 3.12.0).

The main improvement is the implementation of the tests for formulas (forms.py) and grammars (grammars.py) with pytest. Doing that, I added spaces for the str representation of binary connectives, as discussed in #3 (and like you said, if it turns out not to be an improvement, we can still change it back). I also changed the development status indicated in the README.md file.
I ran the tests for both Python versions 3.9 and 3.13, and they all passed.
The documentation built correctly.

I don't know if we should already include the tests in the GitHub action, or if should we should wait for them to be completely implemented.

@Cubix1729 Cubix1729 added bug Something isn't working tests improvement labels May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants