CPPUNIT_ASSERT_DOUBLES_EQUAL with

demms
2009-07-13
2013-04-22
  • demms
    demms
    2009-07-13

    Hi

    I've just discovered that CPPUNIT_ASSERT_DOUBLES_EQUAL(expected, actual, tolerance) passes if the actual value passed to it is -1.#IND000000000000. Is this a known problem? Does anyone know a way round this since if the value I get from a caclulation is -1.#IND000000000000 rather than the expected value I need it to fail.

    Thanks
    Dave

     
    • demms
      demms
      2009-07-13

      Please ignore this thread, I've now found that this problem has been fixed in 1.12.1