From 513086fe04e6e571a6141fac8a7bd09b772e3392 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 28 Nov 2017 15:40:49 +1300 Subject: [PATCH] Use TEST_REL instead of TEST so failure reports values --- xapian-core/tests/api_percentages.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xapian-core/tests/api_percentages.cc b/xapian-core/tests/api_percentages.cc index e83fa9664..ca97f2cce 100644 --- a/xapian-core/tests/api_percentages.cc +++ b/xapian-core/tests/api_percentages.cc @@ -255,7 +255,7 @@ DEFINE_TESTCASE(topercent5, backend) { // It would be odd if the non-existent term was worth more, but in 1.0.x // the top hit got 4% in this testcase. In 1.2.x it gets 50%, which is // better, but >50% would be more natural. - TEST(mset[0].get_percent() >= 50); + TEST_REL(mset[0].get_percent(), >=, 50); return true; } -- 2.11.4.GIT