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

11 lines
214 B
C++

#include "offer_05.hpp"
#include <gtest/gtest.h>
TEST(Offer05, Case1) {
string s{"We are happy."};
string expected{"We%20are%20happy."};
Offer05 solution;
EXPECT_EQ(solution.replaceSpace(s), expected);
}