From 2a76c445a08502af66f6a6f29fd0ee603ee8c022 Mon Sep 17 00:00:00 2001 From: NAUD Maxence <maxence.naud@cea.fr> Date: Tue, 3 Oct 2023 10:01:53 +0000 Subject: [PATCH] [Upd] array in AddImpl test to prevent clang-format from changing their format --- unit_tests/operator/Test_AddImpl.cpp | 44 ++++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/unit_tests/operator/Test_AddImpl.cpp b/unit_tests/operator/Test_AddImpl.cpp index e24d7ac6..18d98d16 100644 --- a/unit_tests/operator/Test_AddImpl.cpp +++ b/unit_tests/operator/Test_AddImpl.cpp @@ -19,25 +19,25 @@ using namespace Aidge; TEST_CASE("[cpu/operator] Add(forward)") { - std::shared_ptr<Tensor> input1 = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { - { - { - {{20, 47},{21, 48},{22, 49}}, - {{23, 50},{24, 51},{25, 52}}, - {{26, 53},{27, 54},{28, 55}} - }, - { - {{29, 56},{30, 57},{31, 58}}, - {{32, 59},{33, 60},{34, 61}}, - {{35, 62},{36, 63},{37, 64}} - }, - { - {{38, 65},{39, 66},{40, 67}}, - {{41, 68},{42, 69},{43, 70}}, - {{44, 71},{45, 72},{46, 73}} - } - } - }); + std::shared_ptr<Tensor> input1 = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { + { // + { // + {{20, 47},{21, 48},{22, 49}}, // + {{23, 50},{24, 51},{25, 52}}, // + {{26, 53},{27, 54},{28, 55}} // + }, // + { // + {{29, 56},{30, 57},{31, 58}}, // + {{32, 59},{33, 60},{34, 61}}, // + {{35, 62},{36, 63},{37, 64}} // + }, // + { // + {{38, 65},{39, 66},{40, 67}}, // + {{41, 68},{42, 69},{43, 70}}, // + {{44, 71},{45, 72},{46, 73}} // + } // + } // + }); // SECTION("One input") { std::shared_ptr<Node> myAdd = Add<1>(); @@ -51,7 +51,7 @@ TEST_CASE("[cpu/operator] Add(forward)") { } SECTION("Two inputs") { - std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { + std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { { { {{40, 94},{42, 96},{44, 98}}, @@ -81,9 +81,9 @@ TEST_CASE("[cpu/operator] Add(forward)") { REQUIRE(*std::static_pointer_cast<Tensor>(myAdd->getOperator()->getOutput(0)) == *expectedOutput); } - + SECTION("Three inputs") { - std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { + std::shared_ptr<Tensor> expectedOutput = std::make_shared<Tensor>(Array4D<int,3,3,3,2> { { { {{ 60, 141},{ 63, 144},{ 66, 147}}, -- GitLab