From dcd7dfd4690e9b10fa13ea6831372f2293ea9da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Fri, 10 Sep 2021 11:33:36 -0400 Subject: [PATCH] ENH: fully cover the logical test cases in MetaProgrammingLibraryTest Only 7 of 8 cases were tested, and they were not sorted. --- .../Core/Common/test/itkMetaProgrammingLibraryTest.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Modules/Core/Common/test/itkMetaProgrammingLibraryTest.cxx b/Modules/Core/Common/test/itkMetaProgrammingLibraryTest.cxx index c7aff1f450b..5141a0d115d 100644 --- a/Modules/Core/Common/test/itkMetaProgrammingLibraryTest.cxx +++ b/Modules/Core/Common/test/itkMetaProgrammingLibraryTest.cxx @@ -28,11 +28,12 @@ itkMetaProgrammingLibraryTest(int, char *[]) // Or between constants static_assert((OrC::Value == true), "Unit test failed"); - static_assert((OrC::Value == true), "Unit test failed"); static_assert((OrC::Value == true), "Unit test failed"); - static_assert((OrC::Value == true), "Unit test failed"); + static_assert((OrC::Value == true), "Unit test failed"); static_assert((OrC::Value == true), "Unit test failed"); + static_assert((OrC::Value == true), "Unit test failed"); static_assert((OrC::Value == true), "Unit test failed"); + static_assert((OrC::Value == true), "Unit test failed"); static_assert((OrC::Value == false), "Unit test failed"); static_assert((OrC::Value == true), "Unit test failed"); @@ -42,11 +43,12 @@ itkMetaProgrammingLibraryTest(int, char *[]) // Or between types static_assert((std::is_same::Type, TrueType>::value), "Unit test failed"); - static_assert((std::is_same::Type, TrueType>::value), "Unit test failed"); static_assert((std::is_same::Type, TrueType>::value), "Unit test failed"); - static_assert((std::is_same::Type, TrueType>::value), "Unit test failed"); + static_assert((std::is_same::Type, TrueType>::value), "Unit test failed"); static_assert((std::is_same::Type, TrueType>::value), "Unit test failed"); + static_assert((std::is_same::Type, TrueType>::value), "Unit test failed"); static_assert((std::is_same::Type, TrueType>::value), "Unit test failed"); + static_assert((std::is_same::Type, TrueType>::value), "Unit test failed"); static_assert((std::is_same::Type, FalseType>::value), "Unit test failed"); static_assert((std::is_same::Type, TrueType>::value), "Unit test failed");