catch_matchers_generic.cpp 278 B

123456789
  1. #include "catch_matchers_generic.hpp"
  2. std::string Catch::Matchers::Generic::Detail::finalizeDescription(const std::string& desc) {
  3. if (desc.empty()) {
  4. return "matches undescribed predicate";
  5. } else {
  6. return "matches predicate: \"" + desc + '"';
  7. }
  8. }