diff --git a/test/testcondition.cpp b/test/testcondition.cpp index e0e16a333..3a36e5b65 100644 --- a/test/testcondition.cpp +++ b/test/testcondition.cpp @@ -951,6 +951,24 @@ private: " if (a>b || a T icdf( const T uniform ) {\n" + " if ((0 -1.0 - 1.0e-12))\n" + " return;\n" + " else\n" + " return;\n" + "}"); + TODO_ASSERT_EQUALS("", "[test.cpp:3]: (warning) Logical conjunction always evaluates to false: neg < -1.0 && neg > -1.0.\n", errout.str()); + } void incorrectLogicOperator8() { // opposite expressions