<commit_before>#ifndef TEST_VALID_PALINDROME_HPP
#define TEST_VALID_PALINDROME_HPP

#include <boost/test/unit_test.hpp>

#include "algorithms/strings/valid_palindrome.hpp"

BOOST_AUTO_TEST_CASE(test_valpal_empty_strings)
{
    ValidPalindrome::Solution solution;
    BOOST_CHECK(true == solution.isPalindrome(std::string()));
    BOOST_CHECK(true == solution.isPalindrome(" "));
}

BOOST_AUTO_TEST_CASE(test_valpal_simple_strings)
{
    ValidPalindrome::Solution solution;
    BOOST_CHECK(true == solution.isPalindrome("a"));
    BOOST_CHECK(true == solution.isPalindrome("aBa"));
    BOOST_CHECK(true == solution.isPalindrome("abba"));
    BOOST_CHECK(true == solution.isPalindrome(" a1,!"));
    BOOST_CHECK(true == solution.isPalindrome("a. "));
    BOOST_CHECK(true == solution.isPalindrome(".,"));
}

BOOST_AUTO_TEST_CASE(test_valpal_not_palindrome)
{
    ValidPalindrome::Solution solution;
    BOOST_CHECK(false == solution.isPalindrome("race a car"));
    BOOST_CHECK(false == solution.isPalindrome("abac"));
    BOOST_CHECK(false == solution.isPalindrome("0P"));
}

BOOST_AUTO_TEST_CASE(test_valpal_complex_strings)
{
    ValidPalindrome::Solution solution;
    BOOST_CHECK(true == solution.isPalindrome("A man, a plan, a canal: Panama"));
}

#endif // TEST_VALID_PALINDROME_HPP<commit_msg>Fix test case for valid palindrom algorithm<commit_after>#ifndef TEST_VALID_PALINDROME_HPP
#define TEST_VALID_PALINDROME_HPP

#include <boost/test/unit_test.hpp>

#include "algorithms/strings/valid_palindrome.hpp"

BOOST_AUTO_TEST_CASE(test_valpal_empty_strings)
{
    ValidPalindrome::Solution solution;
    BOOST_CHECK(true == solution.isPalindrome(std::string()));
    BOOST_CHECK(true == solution.isPalindrome(" "));
}

BOOST_AUTO_TEST_CASE(test_valpal_simple_strings)
{
    ValidPalindrome::Solution solution;
    BOOST_CHECK(true == solution.isPalindrome("a"));
    BOOST_CHECK(true == solution.isPalindrome("aBa"));
    BOOST_CHECK(true == solution.isPalindrome("abba"));
    BOOST_CHECK(true == solution.isPalindrome("a. "));
    BOOST_CHECK(true == solution.isPalindrome(".,"));
}

BOOST_AUTO_TEST_CASE(test_valpal_not_palindrome)
{
    ValidPalindrome::Solution solution;
    BOOST_CHECK(false == solution.isPalindrome("race a car"));
    BOOST_CHECK(false == solution.isPalindrome("abac"));
    BOOST_CHECK(false == solution.isPalindrome("0P"));
    BOOST_CHECK(false == solution.isPalindrome(" a1,!"));
}

BOOST_AUTO_TEST_CASE(test_valpal_complex_strings)
{
    ValidPalindrome::Solution solution;
    BOOST_CHECK(true == solution.isPalindrome("A man, a plan, a canal: Panama"));
}

#endif // TEST_VALID_PALINDROME_HPP
{'fraction_non_alphanumeric': 0.13541270445036135, 'fraction_numerical': 0.0015214910612400153, 'mean_word_length': 6.579250720461095, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5707153', 'n_tokens_mistral': 949, 'n_tokens_neox': 904, 'n_words': 115}