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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/matchers/catch_matchers_predicate.cpp
blob: fce37373ac8d5463439fee11db4730ca14477e06 (plain)
1
2
3
4
5
6
7
8
9
#include <catch2/matchers/catch_matchers_predicate.hpp>

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