leetcode/tests/s0009_palindrome_number.cpp

25 lines
427 B
C++
Raw Normal View History

2022-11-02 14:20:09 +00:00
#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);
}