Reworked stringification layer, removed Catch::toString

Now the order of stringification checks is

1) StringMaker specialization
2) operator<<

toString overloads and specializations have been removed.
This commit is contained in:
Martin Hořeňovský
2017-05-02 23:51:03 +02:00
parent 40130e59b4
commit 33ed1773f4
20 changed files with 626 additions and 557 deletions

View File

@@ -25,7 +25,7 @@ namespace Matchers {
}
virtual std::string describe() const override {
return "Contains: " + Catch::toString( m_comparator );
return "Contains: " + ::Catch::Detail::stringify( m_comparator );
}
T const& m_comparator;
@@ -46,7 +46,7 @@ namespace Matchers {
return true;
}
virtual std::string describe() const override {
return "Contains: " + Catch::toString( m_comparator );
return "Contains: " + ::Catch::Detail::stringify( m_comparator );
}
std::vector<T> const& m_comparator;
@@ -70,7 +70,7 @@ namespace Matchers {
return true;
}
virtual std::string describe() const override {
return "Equals: " + Catch::toString( m_comparator );
return "Equals: " + ::Catch::Detail::stringify( m_comparator );
}
std::vector<T> const& m_comparator;
};