diff --git a/CHANGELOG.md b/CHANGELOG.md index b0f9f34..ca13d9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## (unreleased) +Bug Fixes: + +* fixes incorrectly simplified rules with comparisons + ## 0.1.2 (2017-03-23) Features: diff --git a/src/anthem/Simplification.cpp b/src/anthem/Simplification.cpp index ae57a14..7e705f7 100644 --- a/src/anthem/Simplification.cpp +++ b/src/anthem/Simplification.cpp @@ -81,7 +81,7 @@ struct ReplaceVariableInFormulaVisitor : public ast::RecursiveFormulaVisitor #false)\n"); } + + SECTION("comparisons") + { + input << ":- M > N."; + anthem::translate("input", input, context); + + REQUIRE(output.str() == "(M > N -> #false)\n"); + } }