clm971910 / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

EXPECT_FLOAT_EQ should show all the digits it compares #314

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Gregory Marton:

The following test output is not quite excellent enough:

Value of: snippet.score()
 Actual: -0.0731707
Expected: -3*(1-(1/(1+lunchroomy_score/sentence_len_norm)))
Which is: -0.0731707

If EXPECT_FLOAT_EQ is going to test to k significant digits, then it would be 
nice to have it actually show me k significant digits in the error message.

Original issue reported on code.google.com by w...@google.com on 14 Sep 2010 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 27 Sep 2010 at 7:27