s0038
This commit is contained in:
17
tests/s0038_count_and_say.cpp
Normal file
17
tests/s0038_count_and_say.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "s0038_count_and_say.hpp"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(Problem38, Case1) {
|
||||
int i{1};
|
||||
string o{"1"};
|
||||
Solution solution;
|
||||
EXPECT_EQ(solution.countAndSay(i), o);
|
||||
}
|
||||
|
||||
TEST(Problem38, Case2) {
|
||||
int i{4};
|
||||
string o{"1211"};
|
||||
Solution solution;
|
||||
EXPECT_EQ(solution.countAndSay(i), o);
|
||||
}
|
Reference in New Issue
Block a user