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 就不会抛出错误。
He scored four of the baskets but missed a free throw.
他4次投篮得分,可是一次罚篮却没中。
He grabbed four logs to throw on the fire.
他把四块木头投到火里。
He grabbed four logs to throw on the fire.
他把四块木头投到火里。
应用推荐