-
Notifications
You must be signed in to change notification settings - Fork 82
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
Added more Short Truth Table tests #675
Conversation
… into stt-test-suite
… into stt-test-suite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the conditional case A -> B where the -> is false: does it check that it is ok to just set A to true or just set B to false?
For the biconditional A <-> B: you have tests where A and <-> have given truth-values ... do you need to add tests where <-> and B have given truth-values? It should be completely symmetrical, but still ...
For the first question, no. I forgot about those test cases and will add them shortly. For the second question, I figured they would be symmetric, but I will add test cases for them too just in case. |
Now tests only setting the A value and only setting the B value
… into stt-test-suite
@Bram28 I just added in more tests for the conditional case and biconditional cases you mentioned. |
One of the tests failed, but I tested that and that seems to be the case. It should be failing.
… into stt-test-suite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
puzzles.shorttruthtable.rules.NotEliminationTest > CannotSetBothAtOnceTest FAILED
java.lang.NullPointerException at NotEliminationTest.java:120
Even if this is the intended behavior, the unit test should be marked as passed, otherwise this could interfere with future checks on other pull requests.
Commented out the test case, I'll make a note in #684 that the test case should be uncommented once the issue is fixed. |
Description
Added tests for Biconditional Elimination, Conditional Elimination, and Not Elimination. One of the tests for Not Elimination is commented out because it fails, but that seems to be correct, as there does seem to be a bug with the rule (see #684).
Type of change
How Has This Been Tested?
Checklist: