mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Review corrections
Corrected stylistic mistakes and simplified a couple of the new tests.
This commit is contained in:
parent
dd7340e5f7
commit
e55342385e
4 changed files with 6 additions and 7 deletions
|
|
@ -41,7 +41,7 @@ public:
|
|||
explicit matcher(const char* expected) : expected_(expected) {}
|
||||
bool operator()(const char* actual)
|
||||
{
|
||||
if (nullptr == actual || nullptr == expected_)
|
||||
if(!actual || !expected_)
|
||||
return actual == expected_;
|
||||
return std::strcmp(actual, expected_) == 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ namespace detail {
|
|||
}
|
||||
inline void serialize(stream& s, const char* const str)
|
||||
{
|
||||
if (nullptr != str)
|
||||
if(str)
|
||||
s << '"' << str << '"';
|
||||
else
|
||||
s << "nullptr";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue