Skip to content

Commit

Permalink
Update new test function with more explicit log.
Browse files Browse the repository at this point in the history
Signed-off-by: Francois Gauthier-Clerc <francois@gauthier-clerc.fr>
  • Loading branch information
Enderdead committed Aug 31, 2019
1 parent fda5971 commit c981e55
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions common/include/pcl/pcl_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ namespace pcl
elements_rep << elements.back();

return ::testing::AssertionFailure ()
<< "Vector : "<< expr2 << std::endl
<< "Actual : " << expr2 << std::endl
<< "contains : " << vec_rep.str() << std::endl
<< "From : " << expr1 << std::endl
<< "must contain : " << elements_rep.str() << std::endl;
<< "Target set : " << expr1 << std::endl
<< "contains : " << elements_rep.str() << std::endl;
}
}
return ::testing::AssertionSuccess ();
Expand All @@ -256,10 +256,10 @@ namespace pcl
elements_rep << elements.back();

return ::testing::AssertionFailure ()
<< "Vector : "<< expr2 << std::endl
<< "contains : " << vec_rep.str() << std::endl
<< "From : " << expr1 << std::endl
<< "must not contain : " << elements_rep.str() << std::endl;
<< "Actual : " << expr2 << std::endl
<< "contains : " << vec_rep.str() << std::endl
<< "Forbidden set: " << expr1 << std::endl
<< "contains : " << elements_rep.str() << std::endl;
}
}
return ::testing::AssertionSuccess ();
Expand Down

0 comments on commit c981e55

Please sign in to comment.