@@ -176,7 +176,7 @@ SCENARIO(
176
176
symbol_table.lookup_ref (" java::LocalLambdas.test:()V" ).value );
177
177
178
178
const std::string function_prefix_regex_str =
179
- " java::LocalLambdas\\ .test:\\ ( \\ )V " ;
179
+ R"( java::LocalLambdas\.test:\(\)V ) " ;
180
180
181
181
THEN (
182
182
" The local variable should be assigned a temp object implementing "
@@ -192,7 +192,7 @@ SCENARIO(
192
192
symbol_table,
193
193
instructions,
194
194
test_data,
195
- std::regex (function_prefix_regex_str + " ::\\ d+::simpleLambda$" ));
195
+ std::regex (function_prefix_regex_str + R"( ::\d+::simpleLambda$) " ));
196
196
}
197
197
THEN (
198
198
" The local variable should be assigned a non-null pointer to a "
@@ -219,7 +219,7 @@ SCENARIO(
219
219
symbol_table,
220
220
instructions,
221
221
test_data,
222
- std::regex (function_prefix_regex_str + " ::\\ d+::paramLambda$" ));
222
+ std::regex (function_prefix_regex_str + R"( ::\d+::paramLambda$) " ));
223
223
}
224
224
THEN (
225
225
" The local variable should be assigned a non-null pointer to a "
@@ -247,7 +247,7 @@ SCENARIO(
247
247
instructions,
248
248
test_data,
249
249
std::regex (
250
- function_prefix_regex_str + " ::\\ d+::arrayParamLambda$" ));
250
+ function_prefix_regex_str + R"( ::\d+::arrayParamLambda$) " ));
251
251
}
252
252
THEN (
253
253
" The local variable should be assigned a temp object implementing "
@@ -264,7 +264,7 @@ SCENARIO(
264
264
instructions,
265
265
test_data,
266
266
std::regex (
267
- function_prefix_regex_str + " ::\\ d+::returnPrimitiveLambda" ));
267
+ function_prefix_regex_str + R"( ::\d+::returnPrimitiveLambda$ ) " ));
268
268
}
269
269
THEN (
270
270
" The local variable should be assigned a temp object implementing "
@@ -286,7 +286,7 @@ SCENARIO(
286
286
instructions,
287
287
test_data,
288
288
std::regex (
289
- function_prefix_regex_str + " ::\\ d+::returnReferenceLambda" ));
289
+ function_prefix_regex_str + R"( ::\d+::returnReferenceLambda$ ) " ));
290
290
}
291
291
THEN (
292
292
" The local variable should be assigned a temp object implementing "
@@ -307,7 +307,7 @@ SCENARIO(
307
307
test_data,
308
308
std::regex (
309
309
function_prefix_regex_str +
310
- " ::\\ d+::returningSpecalisedGenericLambda" ));
310
+ R"( ::\d+::returningSpecalisedGenericLambda$ ) " ));
311
311
}
312
312
// TODO[TG-2482]: Tests for local lambdas that capture variables
313
313
}
0 commit comments