Skip to content

Commit

Permalink
Cleaning up the test
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoeurjo committed Dec 6, 2024
1 parent 483e94a commit b6f97e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/DGtal/kernel/ArithmeticConversionTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ namespace DGtal
* @see ArithmeticConversionTraits
*/
template <typename T, typename U>
struct ArithmeticConversionTraits< T, U,
typename std::enable_if< std::is_arithmetic<T>::value
struct ArithmeticConversionTraits< T, U, typename std::enable_if< std::is_arithmetic<T>::value
&& std::is_arithmetic<U>::value >::type >
{
using type = typename std::common_type<T, U>::type; //! Arithmetic operation result type.
Expand Down
4 changes: 2 additions & 2 deletions tests/kernel/testPointVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ TEST_CASE( "2D Point Vector Unit tests with BigInteger" )
RealPoint3D p3_3d( p3[0], p3[1] );
RealPoint3D p4_3d( p4[0], p4[1] );

SECTION("Cross products with integers")
SECTION("Cross products with (big)integers")
{
Point2D p = p1 - p2;
Point2D expected(6,6);
Expand All @@ -151,7 +151,7 @@ TEST_CASE( "2D Point Vector Unit tests with BigInteger" )
COMPARE_VALUE_AND_TYPE( crossProduct(p4, p3), crossProduct(p4_3d, p3_3d) );
}

SECTION("Cross products with mixed integers/reals")
SECTION("Cross products with mixed (big)integers/reals")
{
COMPARE_VALUE_AND_TYPE( p1.crossProduct(p3), p1_3d.crossProduct(p3_3d) );
COMPARE_VALUE_AND_TYPE( crossProduct(p1, p3), crossProduct(p1_3d, p3_3d) );
Expand Down

0 comments on commit b6f97e9

Please sign in to comment.