test: clarify fail messages
authorAlexander Alekhin <alexander.alekhin@intel.com>
Thu, 28 Sep 2017 16:07:58 +0000 (19:07 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Fri, 29 Sep 2017 11:33:00 +0000 (14:33 +0300)
modules/stitching/perf/perf_matchers.cpp

index 4e5b03d..a2ffcc2 100644 (file)
@@ -166,12 +166,12 @@ PERF_TEST_P( matchVector, bestOf2NearestVectorFeatures, testing::Combine(
         if (pairwise_matches[i].src_img_idx < 0)
             continue;
 
-        EXPECT_TRUE(pairwise_matches[i].matches.size() > 100);
+        EXPECT_GT(pairwise_matches[i].matches.size(), 100);
         EXPECT_FALSE(pairwise_matches[i].H.empty());
         ++matches_count;
     }
 
-    EXPECT_TRUE(matches_count > 0);
+    EXPECT_GT(matches_count, 0u);
 
     SANITY_CHECK_NOTHING();
 }