]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/common/test_interval_set: use ASSERT_EQ()
authorKefu Chai <kchai@redhat.com>
Fri, 3 Jan 2020 12:46:20 +0000 (20:46 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 15 Jan 2020 03:11:54 +0000 (11:11 +0800)
commita960391ddcbbe5d12d56796e36259f97350747a9
treeb7e81d80b4f38f0617a8549b1f1ba8f2d3353fb2
parent1cbde6dacab8fc8c767f2d04ce2871912b43d8fa
test/common/test_interval_set: use ASSERT_EQ()

ASSERT_EQ() is better than ASSERT_TRUE() when checking for equality, as
it is able to print the unmatched variables.

also, in ASSERT_EQ(), the first parameter is the expected value. so
transpose the parameters for better error messages.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/common/test_interval_set.cc