leetcode/tests/s0009_palindrome_number.cpp
Sainnhe Park c214c8dff4
Some checks failed
continuous-integration/drone/push Build is failing
s0009
2022-11-02 22:20:09 +08:00

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);
}