Files
cmake-examples/05-unit-testing/catch-vendored/Palindrome.cpp
2017-09-24 17:16:29 +01: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;
}