leetcode/tests/offer_05.cpp

11 lines
214 B
C++
Raw Normal View History

2022-11-29 12:26:23 +00:00
#include "offer_05.hpp"
#include <gtest/gtest.h>
TEST(Offer05, Case1) {
string s{"We are happy."};
string expected{"We%20are%20happy."};
2022-11-30 10:20:36 +00:00
Offer05 solution;
2022-11-29 12:26:23 +00:00
EXPECT_EQ(solution.replaceSpace(s), expected);
}