Closed nimec01 closed 6 months ago
In test/ResolutionSpec.hs
, a test could be added that manifests the insight from https://github.com/fmidue/logic-tasks/issues/101#issuecomment-1943804508, i.e., that applySteps
includes checking against use of nonexisting clauses, like [({B}, {~B}, { })]
as a step when not both of these singleton clauses have actually appeared before.
(No tests for gradeSteps
are necessary, I think.)
As mentioned in #101
completeGrade
had some redundancy. This is probably a leftover from when I was not aware thatcompleteGrade
won't be evaluated whenpartialGrade
already failed.I added some tests for
applySteps
(even though we don't use it any more).I also tried to add tests for![image](https://github.com/fmidue/logic-tasks/assets/24428341/a6227c9c-cd8e-46b8-974b-7fc1fb2ee23e)
gradeSteps
which was not possible due to errors regardingOutputMonad