Esempio n. 1
0
TEST(Question_2_7, NoPalindromeOddElements)
{
    LinkedList<char> linkedList;
    linkedList.AddNodeAtEnd('a');
    linkedList.AddNodeAtEnd('b');
    linkedList.AddNodeAtEnd('c');
    ASSERT_FALSE(linkedList.IsPalindrome());
}
Esempio n. 2
0
TEST(Question_2_7, PalindromeEvenElements)
{
    LinkedList<char> linkedList;
    linkedList.AddNodeAtEnd('a');
    linkedList.AddNodeAtEnd('b');
    linkedList.AddNodeAtEnd('b');
    linkedList.AddNodeAtEnd('a');
    ASSERT_TRUE(linkedList.IsPalindrome());
}