Some clean-ups for string handling in Objective-C
This commit is contained in:
1 parent
f4f4fec5f0
commit
006aafd982
2 files changed
+6
-6
No files matched your search
@@ -125,7 +125,7 @@ namespace Catch {
|
||||
}
|
||||
|
||||
virtual std::string toString() const {
|
||||
return "equals string: \"" + Catch::toString( m_substr ) + "\"";
|
||||
return "equals string: " + Catch::toString( m_substr );
|
||||
}
|
||||
};
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace Catch {
|
||||
}
|
||||
|
||||
virtual std::string toString() const {
|
||||
return "contains string: \"" + Catch::toString( m_substr ) + "\"";
|
||||
return "contains string: " + Catch::toString( m_substr );
|
||||
}
|
||||
};
|
||||
|
||||
@@ -151,7 +151,7 @@ namespace Catch {
|
||||
}
|
||||
|
||||
virtual std::string toString() const {
|
||||
return "starts with: \"" + Catch::toString( m_substr ) + "\"";
|
||||
return "starts with: " + Catch::toString( m_substr );
|
||||
}
|
||||
};
|
||||
struct EndsWith : StringHolder<EndsWith> {
|
||||
@@ -163,7 +163,7 @@ namespace Catch {
|
||||
}
|
||||
|
||||
virtual std::string toString() const {
|
||||
return "ends with: \"" + Catch::toString( m_substr ) + "\"";
|
||||
return "ends with: " + Catch::toString( m_substr );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user