Exact comparison of floating point values is unwise, as the order of calculation and issues like excess precision on the x87 FPU can mean you don't get exactly the same answer doing the same calculation in two places in the code.  Use the TEST_EQUAL_DOUBLE macro.