diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..67f1724 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,22 @@ +# Custom attribute to mark sources as using our C++/C code style. +[attr]our-c-style whitespace=tab-in-indent,no-lf-at-eof hooks.style=KWStyle,clangformat +*.c our-c-style +*.h our-c-style +*.cxx our-c-style +*.hxx our-c-style +*.txx our-c-style + +# Custom attribute to mark sources as using our CMake code style. +[attr]our-cmake-style whitespace=tab-in-indent,no-lf-at-eof hooks.style=cmakeformat +*.txt our-cmake-style +*.cmake our-cmake-style +*.wrap our-cmake-style +CMakeLists.txt our-cmake-style + +# ExternalData content links must have LF newlines +*.md5 crlf=input +*.sha512 crlf=input +*.cid crlf=input + +# ghostflow-director GitHub automatic check for maximum repository file size +* hooks-max-size=100000 diff --git a/test/itkDICOMOrientImageFilterGTest.cxx b/test/itkDICOMOrientImageFilterGTest.cxx index 1b9620c..53b4ad9 100644 --- a/test/itkDICOMOrientImageFilterGTest.cxx +++ b/test/itkDICOMOrientImageFilterGTest.cxx @@ -451,9 +451,9 @@ TEST(DICOMOrientation, DirectionCosinesToOrientation) d(0, 2) = 1; EXPECT_EQ(OE::SPL, DICOMOrientation::DirectionCosinesToOrientation(d)); - const double data[] = { 0.5986634407395047, 0.22716302314740483, -0.768113953548866, - 0.5627936241740271, 0.563067040943212, 0.6051601804419384, - 0.5699696670095713, -0.794576911518317, 0.20924175102261847 }; + constexpr itk::SpacePrecisionType data[]{ 0.5986634407395047, 0.22716302314740483, -0.768113953548866, + 0.5627936241740271, 0.563067040943212, 0.6051601804419384, + 0.5699696670095713, -0.794576911518317, 0.20924175102261847 }; ImageType::DirectionType::InternalMatrixType m{ data }; d.GetVnlMatrix() = m; EXPECT_EQ(OE::PIR, DICOMOrientation::DirectionCosinesToOrientation(d));