Files
Kingsley Chen 0f53692371 Update unit testing examples to use catch2
catch is no longer maintained and all relevant examples should be
updated.
2019-01-08 00:11:06 +08:00

12 lines
202 B
C++

#include "Palindrome.h"
bool Palindrome::isPalindrome(const std::string& toCheck)
{
if (toCheck == std::string(toCheck.rbegin(), toCheck.rend())) {
return true;
}
return false;
}