Difference between BOOST_CHECK_CLOSE and BOOST_CHECK_CLOSE_FRACTION?

前端 未结 3 1364
时光说笑
时光说笑 2021-01-04 02:22

Can anyone describe the difference in behavior between BOOST_CHECK_CLOSE and BOOST_CHECK_CLOSE_FRACTION? The documentation implies the that both m

3条回答
  •  抹茶落季
    2021-01-04 03:12

    Yes. Zero is not "close" to any value. You can use BOOST_CHECK_SMALL instead.

提交回复
热议问题