Skip to content

Commit bc4aeb7

Browse files
committed
refactor(tests): Apply linting to pointwise tests
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 0f48708 commit bc4aeb7

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

tests/core/conversion/converters/test_element_wise.cpp

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -238,117 +238,117 @@ TEST(Converters, ATenRsubWithScalarConvertsCorrectly) {
238238
pointwise_test_helper(graph, true, false, {4, 3, 3, 3});
239239
}
240240

241-
TEST(Converters, ATenClampMinConvertsCorrectly) {
242-
const auto graph = R"IR(
241+
TEST(Converters, ATenClampMinConvertsCorrectly) {
242+
const auto graph = R"IR(
243243
graph(%x.1 : Tensor):
244244
%2 : int = prim::Constant[value=-2]()
245245
%3 : None = prim::Constant()
246246
%4 : Tensor = aten::clamp(%x.1, %2, %3)
247247
return (%4))IR";
248-
pointwise_test_helper(graph, true);
249-
}
248+
pointwise_test_helper(graph, true);
249+
}
250250

251-
TEST(Converters, ATenClampMaxConvertsCorrectly) {
252-
const auto graph = R"IR(
251+
TEST(Converters, ATenClampMaxConvertsCorrectly) {
252+
const auto graph = R"IR(
253253
graph(%x.1 : Tensor):
254254
%2 : int = prim::Constant[value=3]()
255255
%3 : None = prim::Constant()
256256
%4 : Tensor = aten::clamp(%x.1, %3, %2)
257257
return (%4))IR";
258-
pointwise_test_helper(graph, true);
259-
}
258+
pointwise_test_helper(graph, true);
259+
}
260260

261-
TEST(Converters, ATenClampMinMaxConvertsCorrectly) {
262-
const auto graph = R"IR(
261+
TEST(Converters, ATenClampMinMaxConvertsCorrectly) {
262+
const auto graph = R"IR(
263263
graph(%x.1 : Tensor):
264264
%2 : int = prim::Constant[value=3]()
265265
%3 : int = prim::Constant[value=-2]()
266266
%4 : Tensor = aten::clamp(%x.1, %3, %2)
267267
return (%4))IR";
268-
pointwise_test_helper(graph, true);
269-
}
268+
pointwise_test_helper(graph, true);
269+
}
270270

271-
TEST(Converters, ATenGreaterThanConvertsCorrectly) {
272-
const auto graph = R"IR(
271+
TEST(Converters, ATenGreaterThanConvertsCorrectly) {
272+
const auto graph = R"IR(
273273
graph(%0 : Tensor, %1 : Tensor):
274274
%2 : Tensor = aten::gt(%0, %1)
275275
return (%2))IR";
276-
pointwise_test_helper(graph, false, false, {5, 5}, {5, 5});
277-
}
276+
pointwise_test_helper(graph, false, false, {5, 5}, {5, 5});
277+
}
278278

279-
TEST(Converters, ATenGreaterThanScalarConvertsCorrectly) {
280-
const auto graph = R"IR(
279+
TEST(Converters, ATenGreaterThanScalarConvertsCorrectly) {
280+
const auto graph = R"IR(
281281
graph(%0 : Tensor):
282282
%scalar : float = prim::Constant[value=3]()
283283
%2 : Tensor = aten::gt(%0, %scalar)
284284
return (%2))IR";
285-
pointwise_test_helper(graph, true, false, {5, 5});
286-
}
285+
pointwise_test_helper(graph, true, false, {5, 5});
286+
}
287287

288-
TEST(Converters, ATenLessThanConvertsCorrectly) {
289-
const auto graph = R"IR(
288+
TEST(Converters, ATenLessThanConvertsCorrectly) {
289+
const auto graph = R"IR(
290290
graph(%0 : Tensor, %1 : Tensor):
291291
%2 : Tensor = aten::lt(%0, %1)
292292
return (%2))IR";
293-
pointwise_test_helper(graph, false, false, {5, 5}, {5, 5});
294-
}
293+
pointwise_test_helper(graph, false, false, {5, 5}, {5, 5});
294+
}
295295

296-
TEST(Converters, ATenLessThanScalarConvertsCorrectly) {
297-
const auto graph = R"IR(
296+
TEST(Converters, ATenLessThanScalarConvertsCorrectly) {
297+
const auto graph = R"IR(
298298
graph(%0 : Tensor):
299299
%scalar : float = prim::Constant[value=3]()
300300
%2 : Tensor = aten::lt(%0, %scalar)
301301
return (%2))IR";
302-
pointwise_test_helper(graph, true, false, {5, 5});
303-
}
302+
pointwise_test_helper(graph, true, false, {5, 5});
303+
}
304304

305-
TEST(Converters, ATenEqualConvertsCorrectly) {
306-
const auto graph = R"IR(
305+
TEST(Converters, ATenEqualConvertsCorrectly) {
306+
const auto graph = R"IR(
307307
graph(%0 : Tensor, %1 : Tensor):
308308
%2 : Tensor = aten::eq(%0, %1)
309309
return (%2))IR";
310-
pointwise_test_helper(graph, false, false, {5, 5}, {5, 5});
311-
}
310+
pointwise_test_helper(graph, false, false, {5, 5}, {5, 5});
311+
}
312312

313-
TEST(Converters, ATenEqualScalarConvertsCorrectly) {
314-
const auto graph = R"IR(
313+
TEST(Converters, ATenEqualScalarConvertsCorrectly) {
314+
const auto graph = R"IR(
315315
graph(%0 : Tensor):
316316
%scalar : float = prim::Constant[value=3]()
317317
%2 : Tensor = aten::eq(%0, %scalar)
318318
return (%2))IR";
319-
pointwise_test_helper(graph, true, false, {5, 5});
320-
}
319+
pointwise_test_helper(graph, true, false, {5, 5});
320+
}
321321

322-
TEST(Converters, ATenGEConvertsCorrectly) {
323-
const auto graph = R"IR(
322+
TEST(Converters, ATenGEConvertsCorrectly) {
323+
const auto graph = R"IR(
324324
graph(%0 : Tensor, %1 : Tensor):
325325
%2 : Tensor = aten::ge(%0, %1)
326326
return (%2))IR";
327-
pointwise_test_helper(graph, false, false, {5, 5}, {5, 5});
328-
}
327+
pointwise_test_helper(graph, false, false, {5, 5}, {5, 5});
328+
}
329329

330-
TEST(Converters, ATenGEScalarConvertsCorrectly) {
331-
const auto graph = R"IR(
330+
TEST(Converters, ATenGEScalarConvertsCorrectly) {
331+
const auto graph = R"IR(
332332
graph(%0 : Tensor):
333333
%scalar : float = prim::Constant[value=3]()
334334
%2 : Tensor = aten::ge(%0, %scalar)
335335
return (%2))IR";
336-
pointwise_test_helper(graph, true, false, {5, 5});
337-
}
336+
pointwise_test_helper(graph, true, false, {5, 5});
337+
}
338338

339-
TEST(Converters, ATenLEConvertsCorrectly) {
340-
const auto graph = R"IR(
339+
TEST(Converters, ATenLEConvertsCorrectly) {
340+
const auto graph = R"IR(
341341
graph(%0 : Tensor, %1 : Tensor):
342342
%2 : Tensor = aten::le(%0, %1)
343343
return (%2))IR";
344-
pointwise_test_helper(graph, false, false, {5, 5}, {5, 5});
345-
}
344+
pointwise_test_helper(graph, false, false, {5, 5}, {5, 5});
345+
}
346346

347-
TEST(Converters, ATenLEScalarConvertsCorrectly) {
348-
const auto graph = R"IR(
347+
TEST(Converters, ATenLEScalarConvertsCorrectly) {
348+
const auto graph = R"IR(
349349
graph(%0 : Tensor):
350350
%scalar : float = prim::Constant[value=3]()
351351
%2 : Tensor = aten::le(%0, %scalar)
352352
return (%2))IR";
353-
pointwise_test_helper(graph, true, false, {5, 5});
354-
}
353+
pointwise_test_helper(graph, true, false, {5, 5});
354+
}

0 commit comments

Comments
 (0)