25 lines
418 B
C++
25 lines
418 B
C++
#include "s0009_palindrome_number.hpp"
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
TEST(Problem9, Case1) {
|
|
int i{121};
|
|
bool o{true};
|
|
S0009 solution;
|
|
EXPECT_EQ(solution.isPalindrome(i), o);
|
|
}
|
|
|
|
TEST(Problem9, Case2) {
|
|
int i{-121};
|
|
bool o{false};
|
|
S0009 solution;
|
|
EXPECT_EQ(solution.isPalindrome(i), o);
|
|
}
|
|
|
|
TEST(Problem9, Case3) {
|
|
int i{10};
|
|
bool o{false};
|
|
S0009 solution;
|
|
EXPECT_EQ(solution.isPalindrome(i), o);
|
|
}
|