@@ -127,8 +127,7 @@ from Parser!)";
127127
128128 std::string result = tpl.RenderAsString (ValuesMap{});
129129 std::cout << result << std::endl;
130- std::string expectedResult = R"( Hello World
131- --
130+ std::string expectedResult = R"( Hello World --
132131from Parser!)" ;
133132 EXPECT_STREQ (expectedResult.c_str (), result.c_str ());
134133}
@@ -161,15 +160,14 @@ from Parser!)";
161160
162161 std::string result = tpl.RenderAsString (ValuesMap{});
163162 std::cout << result << std::endl;
164- std::string expectedResult = R"( Hello World
165- --<
163+ std::string expectedResult = R"( Hello World --<
166164from Parser!)" ;
167165 EXPECT_STREQ (expectedResult.c_str (), result.c_str ());
168166}
169167
170168TEST (BasicTests, StripLSpaces_4)
171169{
172- std::string source = R"( Hello World
170+ std::string source = " Hello World\t\t \t " R"(
173171 {%- set delim = ' --' %} {{+delim}}<
174172from Parser!)" ;
175173
@@ -178,25 +176,22 @@ from Parser!)";
178176
179177 std::string result = tpl.RenderAsString (ValuesMap{});
180178 std::cout << result << std::endl;
181- std::string expectedResult = R"( Hello World
182- --<
179+ std::string expectedResult = R"( Hello World --<
183180from Parser!)" ;
184181 EXPECT_STREQ (expectedResult.c_str (), result.c_str ());
185182}
186183
187184TEST (BasicTests, StripLSpaces_5)
188185{
189- std::string source = R"( Hello World
190- {%- set delim = ' --' %} {{-delim}}<
186+ std::string source = R"( Hello World{%- set delim = ' --' %} {{-delim}}<
191187from Parser!)" ;
192188
193189 Template tpl;
194190 ASSERT_TRUE (tpl.Load (source));
195191
196192 std::string result = tpl.RenderAsString (ValuesMap{});
197193 std::cout << result << std::endl;
198- std::string expectedResult = R"( Hello World
199- --<
194+ std::string expectedResult = R"( Hello World --<
200195from Parser!)" ;
201196 EXPECT_STREQ (expectedResult.c_str (), result.c_str ());
202197}
@@ -229,8 +224,7 @@ from Parser!)";
229224
230225 std::string result = tpl.RenderAsString (ValuesMap{});
231226 std::cout << result << std::endl;
232- std::string expectedResult = R"( Hello World
233- --
227+ std::string expectedResult = R"( Hello World --
234228from Parser!)" ;
235229 EXPECT_STREQ (expectedResult.c_str (), result.c_str ());
236230}
@@ -246,8 +240,7 @@ from Parser!)";
246240
247241 std::string result = tpl.RenderAsString (ValuesMap{});
248242 std::cout << result << std::endl;
249- std::string expectedResult = R"( Hello World
250- --
243+ std::string expectedResult = R"( Hello World --
251244from Parser!)" ;
252245 EXPECT_STREQ (expectedResult.c_str (), result.c_str ());
253246}
0 commit comments