Substitute Spaces

This commit is contained in:
2022-11-29 20:26:23 +08:00
parent 80ee14486c
commit e37f2531d7
5 changed files with 66 additions and 0 deletions

10
tests/offer_05.cpp Normal file
View File

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