Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_matchers_generic.cpp
blob: 300102e0bd804e5661e83960317348430cdc45f0 (plain)
1
2
3
4
5
6
7
8
9
#include "catch_matchers_generic.hpp"

std::string Catch::Matchers::Generic::Detail::finalizeDescription(const std::string& desc) {
    if (desc.empty()) {
        return "matches undescribed predicate";
    } else {
        return "matches predicate: \"" + desc + '"';
    }
}