日期:
来源:雅诚德英语网
For example, ASSERT_FLOAT_EQ (2.00001, 2.000011) passes—Google does not throw an error if the results tally up to four decimal places.
例如,ASSERT_FLOAT_EQ (2.00001, 2.000011) 会顺利通过 —如果直到小数点后四位都匹配,Google 就不会抛出错误。
For example, ASSERT_FLOAT_EQ (2.00001, 2.000011) passes—Google does not throw an error if the results tally up to four decimal places.
例如,ASSERT_FLOAT_EQ (2.00001, 2.000011) 会顺利通过 —如果直到小数点后四位都匹配,Google 就不会抛出错误。