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