leetcode/tests/s0038_count_and_say.cpp
2022-11-30 18:20:36 +08:00

18 lines
296 B
C++

#include "s0038_count_and_say.hpp"
#include <gtest/gtest.h>
TEST(Problem38, Case1) {
int i{1};
string o{"1"};
S0038 solution;
EXPECT_EQ(solution.countAndSay(i), o);
}
TEST(Problem38, Case2) {
int i{4};
string o{"1211"};
S0038 solution;
EXPECT_EQ(solution.countAndSay(i), o);
}