diff --git a/test/Library/Mathematics/Geometry/2D/Objects/LineString.test.cpp b/test/Library/Mathematics/Geometry/2D/Objects/LineString.test.cpp index aa905139..2ed0f034 100644 --- a/test/Library/Mathematics/Geometry/2D/Objects/LineString.test.cpp +++ b/test/Library/Mathematics/Geometry/2D/Objects/LineString.test.cpp @@ -42,7 +42,7 @@ TEST (Library_Mathematics_Geometry_2D_Objects_LineString, Clone) { - EXPECT_NO_THROW(LineString({ { 0.0, 0.0 }, { 0.0, 1.0 }, { 1.0, 0.0 } }).clone()) ; + EXPECT_NO_THROW(const LineString* lineStringPtr = LineString({ { 0.0, 0.0 }, { 0.0, 1.0 }, { 1.0, 0.0 } }).clone() ; delete lineStringPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/2D/Objects/Point.test.cpp b/test/Library/Mathematics/Geometry/2D/Objects/Point.test.cpp index 5b99c1da..8a2340e6 100644 --- a/test/Library/Mathematics/Geometry/2D/Objects/Point.test.cpp +++ b/test/Library/Mathematics/Geometry/2D/Objects/Point.test.cpp @@ -34,7 +34,7 @@ TEST (Library_Mathematics_Geometry_2D_Objects_Point, Clone) { - EXPECT_NO_THROW(Point(1.0, 2.0).clone()) ; + EXPECT_NO_THROW(const Point* pointPtr = Point(1.0, 2.0).clone() ; delete pointPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/2D/Objects/PointSet.test.cpp b/test/Library/Mathematics/Geometry/2D/Objects/PointSet.test.cpp index b685094f..8eb41535 100644 --- a/test/Library/Mathematics/Geometry/2D/Objects/PointSet.test.cpp +++ b/test/Library/Mathematics/Geometry/2D/Objects/PointSet.test.cpp @@ -41,7 +41,7 @@ TEST (Library_Mathematics_Geometry_2D_Objects_PointSet, Clone) { - EXPECT_NO_THROW(PointSet({ { 0.0, 0.0 }, { 0.0, 1.0 }, { 0.0, 2.0 } }).clone()) ; + EXPECT_NO_THROW(const PointSet* pointSetPtr = PointSet({ { 0.0, 0.0 }, { 0.0, 1.0 }, { 0.0, 2.0 } }).clone() ; delete pointSetPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/2D/Objects/Polygon.test.cpp b/test/Library/Mathematics/Geometry/2D/Objects/Polygon.test.cpp index 86dfd95c..771dd728 100644 --- a/test/Library/Mathematics/Geometry/2D/Objects/Polygon.test.cpp +++ b/test/Library/Mathematics/Geometry/2D/Objects/Polygon.test.cpp @@ -142,7 +142,7 @@ TEST (Library_Mathematics_Geometry_2D_Objects_Polygon, Clone) { 1.0, 0.0 } } ; - EXPECT_NO_THROW(Polygon(vertices).clone()) ; + EXPECT_NO_THROW(const Polygon* polygonPtr = Polygon(vertices).clone() ; delete polygonPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Composite.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Composite.test.cpp index 9988e748..a27303fb 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Composite.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Composite.test.cpp @@ -105,7 +105,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Composite, Clone) const Pyramid pyramid = { base, apex } ; - EXPECT_NO_THROW(Composite(pyramid).clone() ;) ; + EXPECT_NO_THROW(const Composite* compositePtr = Composite(pyramid).clone() ; delete compositePtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Cone.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Cone.test.cpp index 94aee35b..ae31d706 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Cone.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Cone.test.cpp @@ -51,7 +51,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Cone, Clone) const Vector3d axis = Vector3d::Z() ; const Angle angle = Angle::Degrees(45.0) ; - EXPECT_NO_THROW(Cone(apex, axis, angle).clone()) ; + EXPECT_NO_THROW(const Cone* conePtr = Cone(apex, axis, angle).clone() ; delete conePtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Cuboid.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Cuboid.test.cpp index c3915ca5..10d1867a 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Cuboid.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Cuboid.test.cpp @@ -59,7 +59,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Cuboid, Clone) const std::array axes = { Vector3d { 1.0, 0.0, 0.0 }, Vector3d { 0.0, 1.0, 0.0 }, Vector3d { 0.0, 0.0, 1.0 } } ; const std::array extent = { 1.0, 2.0, 3.0 } ; - EXPECT_NO_THROW(Cuboid(center, axes, extent).clone()) ; + EXPECT_NO_THROW(const Cuboid* cuboidPtr = Cuboid(center, axes, extent).clone() ; delete cuboidPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Ellipsoid.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Ellipsoid.test.cpp index d187c59f..8ac20ffd 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Ellipsoid.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Ellipsoid.test.cpp @@ -50,7 +50,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Ellipsoid, Clone) { - EXPECT_NO_THROW(Ellipsoid({ 1.0, 2.0, 3.0 }, 4.0, 5.0, 6.0).clone()) ; + EXPECT_NO_THROW(const Ellipsoid* ellipsoidPtr = Ellipsoid({ 1.0, 2.0, 3.0 }, 4.0, 5.0, 6.0).clone() ; delete ellipsoidPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Line.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Line.test.cpp index cc57fccd..0610cd73 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Line.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Line.test.cpp @@ -37,7 +37,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Line, Clone) { - EXPECT_NO_THROW(Line({ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 1.0 }).clone()) ; + EXPECT_NO_THROW(const Line* linePtr = Line({ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 1.0 }).clone() ; delete linePtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/LineString.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/LineString.test.cpp index ebc189ec..134ad436 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/LineString.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/LineString.test.cpp @@ -42,7 +42,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_LineString, Clone) { - EXPECT_NO_THROW(LineString({ { 0.0, 0.0, 0.0 }, { 0.0, 1.0, 0.0 }, { 1.0, 0.0, 1.0 } }).clone()) ; + EXPECT_NO_THROW(const LineString* lineStringPtr = LineString({ { 0.0, 0.0, 0.0 }, { 0.0, 1.0, 0.0 }, { 1.0, 0.0, 1.0 } }).clone() ; delete lineStringPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Plane.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Plane.test.cpp index af2f3c5a..7607455e 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Plane.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Plane.test.cpp @@ -35,7 +35,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Plane, Clone) { - EXPECT_NO_THROW(Plane({ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 1.0 }).clone()) ; + EXPECT_NO_THROW(const Plane* planePtr = Plane({ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 1.0 }).clone() ; delete planePtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Point.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Point.test.cpp index 60c0adf6..f812a1de 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Point.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Point.test.cpp @@ -36,7 +36,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Point, Clone) { - EXPECT_NO_THROW(Point(1.0, 2.0, 3.0).clone()) ; + EXPECT_NO_THROW(const Point* pointPtr = Point(1.0, 2.0, 3.0).clone() ; delete pointPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/PointSet.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/PointSet.test.cpp index e6da8707..42afa367 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/PointSet.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/PointSet.test.cpp @@ -42,7 +42,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_PointSet, Clone) { - EXPECT_NO_THROW(PointSet({ { 0.0, 0.0, 0.0 }, { 0.0, 0.0, 1.0 }, { 0.0, 0.0, 2.0 } }).clone()) ; + EXPECT_NO_THROW(const PointSet* pointSetPtr = PointSet({ { 0.0, 0.0, 0.0 }, { 0.0, 0.0, 1.0 }, { 0.0, 0.0, 2.0 } }).clone() ; delete pointSetPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Polygon.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Polygon.test.cpp index 429c57a6..b05f1549 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Polygon.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Polygon.test.cpp @@ -51,7 +51,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Polygon, Clone) const Vector3d xAxis = { 1.0, 0.0, 0.0 } ; const Vector3d yAxis = { 0.0, 1.0, 0.0 } ; - EXPECT_NO_THROW(Polygon(polygon2d, origin, xAxis, yAxis).clone()) ; + EXPECT_NO_THROW(const Polygon* polygonPtr = Polygon(polygon2d, origin, xAxis, yAxis).clone() ; delete polygonPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Pyramid.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Pyramid.test.cpp index e6de718f..305a881f 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Pyramid.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Pyramid.test.cpp @@ -49,7 +49,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Pyramid, Clone) const Polygon base = { { { { 0.0, 0.0 }, { 1.0, 0.0 }, { 1.0, 1.0 }, { 0.0, 1.0 } } }, { 0.0, 0.0, 0.0 }, { 1.0, 0.0, 0.0 }, { 0.0, 1.0, 0.0 } } ; const Point apex = { 0.0, 0.0, 1.0 } ; - EXPECT_NO_THROW(Pyramid(base, apex).clone()) ; + EXPECT_NO_THROW(const Pyramid* pyramidPtr = Pyramid(base, apex).clone() ; delete pyramidPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Ray.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Ray.test.cpp index a61ef64b..259caed0 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Ray.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Ray.test.cpp @@ -38,7 +38,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Ray, Clone) { - EXPECT_NO_THROW(Ray({ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 1.0 }).clone()) ; + EXPECT_NO_THROW(const Ray* rayPtr = Ray({ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 1.0 }).clone() ; delete rayPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Segment.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Segment.test.cpp index 8788e13a..c98776ac 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Segment.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Segment.test.cpp @@ -37,7 +37,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Segment, Clone) { - EXPECT_NO_THROW(Segment({ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 1.0 }).clone()) ; + EXPECT_NO_THROW(const Segment* segmentPtr = Segment({ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 1.0 }).clone() ; delete segmentPtr ;) ; } diff --git a/test/Library/Mathematics/Geometry/3D/Objects/Sphere.test.cpp b/test/Library/Mathematics/Geometry/3D/Objects/Sphere.test.cpp index 4e858035..aa21e54b 100644 --- a/test/Library/Mathematics/Geometry/3D/Objects/Sphere.test.cpp +++ b/test/Library/Mathematics/Geometry/3D/Objects/Sphere.test.cpp @@ -44,7 +44,7 @@ TEST (Library_Mathematics_Geometry_3D_Objects_Sphere, Clone) { - EXPECT_NO_THROW(Sphere({ 1.0, 2.0, 3.0 }, 4.0).clone()) ; + EXPECT_NO_THROW(const Sphere* spherePtr = Sphere({ 1.0, 2.0, 3.0 }, 4.0).clone() ; delete spherePtr ;) ; }