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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/catch_matchers_generic.cpp
blob: de262ae870ae0f947a31ca17776919ab52f1bb39 (plain)
1
2
3
4
5
6
7
8
9
#include <catch2/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 + '"';
    }
}