Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
polygon_test.cc File Reference

Comprehensive test suite for polygon.H - 2D polygon operations. More...

#include <gtest/gtest.h>
#include <cmath>
#include <vector>
#include <polygon.H>
Include dependency graph for polygon_test.cc:

Go to the source code of this file.

Classes

class  VertexTest
 
class  PolygonConstructionTest
 
class  PolygonExtremePointsTest
 
class  PolygonVertexAccessTest
 
class  PolygonSegmentAccessTest
 
class  PolygonVertexIteratorTest
 
class  PolygonSegmentIteratorTest
 
class  PolygonIntersectionTest
 
class  PolygonSelfIntersectionTest
 
class  PolygonColinearityTest
 
class  PolygonContainmentTest
 
class  PolygonRemoveVertexTest
 
class  PolygonFromTriangleTest
 
class  RegularPolygonConstructionTest
 
class  RegularPolygonVertexTest
 
class  RegularPolygonSegmentTest
 
class  RegularPolygonVertexIteratorTest
 
class  RegularPolygonSegmentIteratorTest
 
class  RegularPolygonExtremePointsTest
 
class  RegularPolygonRotationTest
 
class  PolygonFromRegularTest
 

Functions

bool approx_equal (const Geom_Number &a, const Geom_Number &b, double tol=EPSILON)
 
bool points_equal (const Point &a, const Point &b, double tol=EPSILON)
 
 TEST_F (VertexTest, DefaultConstruction)
 
 TEST_F (VertexTest, ConstructFromPoint)
 
 TEST_F (VertexTest, CopyConstruction)
 
 TEST_F (VertexTest, CopyAssignment)
 
 TEST_F (VertexTest, SelfAssignment)
 
 TEST_F (VertexTest, ToPointReturnsCorrectPointValue)
 
 TEST_F (VertexTest, DlinkToVertexConversion)
 
 TEST_F (VertexTest, DlinkToVertexConstConversion)
 
 TEST_F (PolygonConstructionTest, DefaultConstruction)
 
 TEST_F (PolygonConstructionTest, AddSingleVertex)
 
 TEST_F (PolygonConstructionTest, AddMultipleVertices)
 
 TEST_F (PolygonConstructionTest, ClosePolygon)
 
 TEST_F (PolygonConstructionTest, CloseWithTooFewVerticesThrows)
 
 TEST_F (PolygonConstructionTest, CannotAddVertexToClosedPolygon)
 
 TEST_F (PolygonConstructionTest, CannotCloseAlreadyClosedPolygon)
 
 TEST_F (PolygonConstructionTest, CopyConstruction)
 
 TEST_F (PolygonConstructionTest, MoveConstruction)
 
 TEST_F (PolygonConstructionTest, CopyAssignment)
 
 TEST_F (PolygonConstructionTest, MoveAssignment)
 
 TEST_F (PolygonConstructionTest, SelfCopyAssignment)
 
 TEST_F (PolygonConstructionTest, AddVertexWithCoordinates)
 
 TEST_F (PolygonExtremePointsTest, ExtremePointsSingleVertex)
 
 TEST_F (PolygonExtremePointsTest, ExtremePointsMultipleVertices)
 
 TEST_F (PolygonExtremePointsTest, NegativeCoordinates)
 
 TEST_F (PolygonVertexAccessTest, GetFirstVertex)
 
 TEST_F (PolygonVertexAccessTest, GetLastVertex)
 
 TEST_F (PolygonVertexAccessTest, GetFirstVertexEmptyPolygonThrows)
 
 TEST_F (PolygonVertexAccessTest, GetLastVertexEmptyPolygonThrows)
 
 TEST_F (PolygonVertexAccessTest, VertexBelongsToPolygon)
 
 TEST_F (PolygonVertexAccessTest, VertexDoesNotBelongToPolygon)
 
 TEST_F (PolygonVertexAccessTest, GetNextVertex)
 
 TEST_F (PolygonVertexAccessTest, GetPrevVertex)
 
 TEST_F (PolygonSegmentAccessTest, GetFirstSegment)
 
 TEST_F (PolygonSegmentAccessTest, GetLastSegment)
 
 TEST_F (PolygonSegmentAccessTest, GetFirstSegmentSingleVertexThrows)
 
 TEST_F (PolygonSegmentAccessTest, GetFirstSegmentEmptyPolygonThrows)
 
 TEST_F (PolygonVertexIteratorTest, IterateAllVertices)
 
 TEST_F (PolygonVertexIteratorTest, GetCurrentVertex)
 
 TEST_F (PolygonVertexIteratorTest, EmptyPolygonThrows)
 
 TEST_F (PolygonSegmentIteratorTest, OpenPolygonIteratesNMinus1Segments)
 
 TEST_F (PolygonSegmentIteratorTest, ClosedPolygonIteratesNSegments)
 
 TEST_F (PolygonSegmentIteratorTest, GetCurrentSegment)
 
 TEST_F (PolygonSegmentIteratorTest, EmptyPolygonThrows)
 
 TEST_F (PolygonSegmentIteratorTest, SingleVertexPolygonThrows)
 
 TEST_F (PolygonIntersectionTest, SegmentIntersectsPolygon)
 
 TEST_F (PolygonIntersectionTest, SegmentDoesNotIntersectPolygon)
 
 TEST_F (PolygonIntersectionTest, SegmentInsidePolygon)
 
 TEST_F (PolygonSelfIntersectionTest, ValidPolygonConstruction)
 
 TEST_F (PolygonSelfIntersectionTest, SelfIntersectingVertexThrows)
 
 TEST_F (PolygonSelfIntersectionTest, SelfIntersectingAddVertexThrows)
 
 TEST_F (PolygonColinearityTest, ColinearPointExtendsEdge)
 
 TEST_F (PolygonColinearityTest, PointInsideLastSegmentThrows)
 
 TEST_F (PolygonContainmentTest, PointInsidePolygon)
 
 TEST_F (PolygonContainmentTest, PointOutsidePolygon)
 
 TEST_F (PolygonContainmentTest, PointNearEdge)
 
 TEST_F (PolygonContainmentTest, OpenPolygonContainmentThrows)
 
 TEST_F (PolygonRemoveVertexTest, RemoveExistingVertex)
 
 TEST_F (PolygonRemoveVertexTest, RemoveNonExistingVertexThrows)
 
 TEST_F (PolygonFromTriangleTest, ConstructFromTriangle)
 
 TEST_F (PolygonFromTriangleTest, CorrectVerticesFromTriangle)
 
 TEST_F (RegularPolygonConstructionTest, DefaultConstruction)
 
 TEST_F (RegularPolygonConstructionTest, ConstructTriangle)
 
 TEST_F (RegularPolygonConstructionTest, ConstructSquare)
 
 TEST_F (RegularPolygonConstructionTest, ConstructHexagon)
 
 TEST_F (RegularPolygonConstructionTest, LessThanThreeSidesThrows)
 
 TEST_F (RegularPolygonConstructionTest, RadiusCalculation)
 
 TEST_F (RegularPolygonVertexTest, GetVertexInRange)
 
 TEST_F (RegularPolygonVertexTest, GetVertexOutOfRangeThrows)
 
 TEST_F (RegularPolygonVertexTest, GetFirstVertex)
 
 TEST_F (RegularPolygonVertexTest, GetLastVertex)
 
 TEST_F (RegularPolygonVertexTest, VerticesAreEquidistantFromCenter)
 
 TEST_F (RegularPolygonSegmentTest, GetFirstSegment)
 
 TEST_F (RegularPolygonSegmentTest, GetLastSegment)
 
 TEST_F (RegularPolygonSegmentTest, AllSidesEqualLength)
 
 TEST_F (RegularPolygonVertexIteratorTest, IterateAllVertices)
 
 TEST_F (RegularPolygonVertexIteratorTest, GetCurrentVertex)
 
 TEST_F (RegularPolygonVertexIteratorTest, NextWithoutCurrent)
 
 TEST_F (RegularPolygonVertexIteratorTest, GetCurrentVertexWithoutCurrent)
 
 TEST_F (RegularPolygonSegmentIteratorTest, IterateAllSegments)
 
 TEST_F (RegularPolygonSegmentIteratorTest, GetCurrentSegment)
 
 TEST_F (RegularPolygonSegmentIteratorTest, NextWithoutCurrent)
 
 TEST_F (RegularPolygonSegmentIteratorTest, GetCurrentSegmentWithoutCurrent)
 
 TEST_F (RegularPolygonExtremePointsTest, LowestPoint)
 
 TEST_F (RegularPolygonExtremePointsTest, HighestPoint)
 
 TEST_F (RegularPolygonExtremePointsTest, LeftmostPoint)
 
 TEST_F (RegularPolygonExtremePointsTest, RightmostPoint)
 
 TEST_F (RegularPolygonRotationTest, NoRotation)
 
 TEST_F (RegularPolygonRotationTest, RotationChangesVertexPositions)
 
 TEST_F (RegularPolygonRotationTest, AllVerticesAtSameRadiusAfterRotation)
 
 TEST_F (PolygonFromRegularTest, ConstructFromRegularPolygon)
 
 TEST_F (PolygonFromRegularTest, AssignFromRegularPolygon)
 
 TEST_F (PolygonFromRegularTest, VerticesMatch)
 
 TEST (PolygonTypeTraits, MoveConstructorIsNoexcept)
 
 TEST (PolygonTypeTraits, MoveAssignmentIsNoexcept)
 
 TEST (PolygonEdgeCases, PolygonWithManyVertices)
 
 TEST (PolygonEdgeCases, RegularPolygonWithManyVertices)
 
 TEST (PolygonEdgeCases, VerySmallPolygon)
 
 TEST (PolygonEdgeCases, NegativeCoordinatesPolygon)
 
 TEST (PolygonConvenienceMethods, AreaOfUnitSquare)
 
 TEST (PolygonConvenienceMethods, AreaOfClockwiseSquare)
 
 TEST (PolygonConvenienceMethods, AreaOfTriangle)
 
 TEST (PolygonConvenienceMethods, PerimeterOfUnitSquare)
 
 TEST (PolygonConvenienceMethods, PerimeterOf345Triangle)
 
 TEST (PolygonConvenienceMethods, CentroidOfUnitSquare)
 
 TEST (PolygonConvenienceMethods, CentroidOfTriangle)
 
 TEST (PolygonConvenienceMethods, IsConvexSquare)
 
 TEST (PolygonConvenienceMethods, IsConvexTriangle)
 
 TEST (PolygonConvenienceMethods, NonConvexLShape)
 
 TEST (PolygonConvenienceMethods, AreaThrowsForTooFewVertices)
 
 TEST (PolygonConvenienceMethods, PerimeterThrowsForSingleVertex)
 
 TEST (PolygonConvenienceMethods, CentroidThrowsForTooFewVertices)
 
 TEST (PolygonConvenienceMethods, IsConvexThrowsForTooFewVertices)
 
int main (int argc, char **argv)
 

Variables

constexpr double EPSILON = 1e-6
 

Detailed Description

Comprehensive test suite for polygon.H - 2D polygon operations.

Tests cover:

  • Vertex class: construction, assignment, navigation
  • Polygon class: construction, vertex management, iterators, self-intersection prevention, containment testing
  • Regular_Polygon class: construction, vertex computation, iterators
  • Edge cases: empty polygons, single vertices, colinearity
  • Move semantics and copy operations

Definition in file polygon_test.cc.

Function Documentation

◆ approx_equal()

bool approx_equal ( const Geom_Number a,
const Geom_Number b,
double  tol = EPSILON 
)

Definition at line 57 of file polygon_test.cc.

References __gmp_expr< mpq_t, mpq_t >::get_d().

Referenced by points_equal(), and TEST_F().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 1468 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ points_equal()

bool points_equal ( const Point a,
const Point b,
double  tol = EPSILON 
)

◆ TEST() [1/20]

TEST ( PolygonConvenienceMethods  ,
AreaOfClockwiseSquare   
)

◆ TEST() [2/20]

TEST ( PolygonConvenienceMethods  ,
AreaOfTriangle   
)

◆ TEST() [3/20]

TEST ( PolygonConvenienceMethods  ,
AreaOfUnitSquare   
)

◆ TEST() [4/20]

TEST ( PolygonConvenienceMethods  ,
AreaThrowsForTooFewVertices   
)

◆ TEST() [5/20]

TEST ( PolygonConvenienceMethods  ,
CentroidOfTriangle   
)

◆ TEST() [6/20]

TEST ( PolygonConvenienceMethods  ,
CentroidOfUnitSquare   
)

◆ TEST() [7/20]

TEST ( PolygonConvenienceMethods  ,
CentroidThrowsForTooFewVertices   
)

◆ TEST() [8/20]

TEST ( PolygonConvenienceMethods  ,
IsConvexSquare   
)

◆ TEST() [9/20]

TEST ( PolygonConvenienceMethods  ,
IsConvexThrowsForTooFewVertices   
)

◆ TEST() [10/20]

TEST ( PolygonConvenienceMethods  ,
IsConvexTriangle   
)

◆ TEST() [11/20]

TEST ( PolygonConvenienceMethods  ,
NonConvexLShape   
)

◆ TEST() [12/20]

TEST ( PolygonConvenienceMethods  ,
PerimeterOf345Triangle   
)

◆ TEST() [13/20]

TEST ( PolygonConvenienceMethods  ,
PerimeterOfUnitSquare   
)

◆ TEST() [14/20]

TEST ( PolygonConvenienceMethods  ,
PerimeterThrowsForSingleVertex   
)

◆ TEST() [15/20]

TEST ( PolygonEdgeCases  ,
NegativeCoordinatesPolygon   
)

◆ TEST() [16/20]

◆ TEST() [17/20]

◆ TEST() [18/20]

TEST ( PolygonEdgeCases  ,
VerySmallPolygon   
)

◆ TEST() [19/20]

TEST ( PolygonTypeTraits  ,
MoveAssignmentIsNoexcept   
)

Definition at line 1224 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [20/20]

TEST ( PolygonTypeTraits  ,
MoveConstructorIsNoexcept   
)

Definition at line 1219 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [1/92]

TEST_F ( PolygonColinearityTest  ,
ColinearPointExtendsEdge   
)

◆ TEST_F() [2/92]

TEST_F ( PolygonColinearityTest  ,
PointInsideLastSegmentThrows   
)

◆ TEST_F() [3/92]

◆ TEST_F() [4/92]

◆ TEST_F() [5/92]

◆ TEST_F() [6/92]

TEST_F ( PolygonConstructionTest  ,
CannotAddVertexToClosedPolygon   
)

◆ TEST_F() [7/92]

TEST_F ( PolygonConstructionTest  ,
CannotCloseAlreadyClosedPolygon   
)

◆ TEST_F() [8/92]

◆ TEST_F() [9/92]

TEST_F ( PolygonConstructionTest  ,
CloseWithTooFewVerticesThrows   
)

◆ TEST_F() [10/92]

TEST_F ( PolygonConstructionTest  ,
CopyAssignment   
)

Definition at line 273 of file polygon_test.cc.

References create_triangle(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [11/92]

TEST_F ( PolygonConstructionTest  ,
CopyConstruction   
)

◆ TEST_F() [12/92]

TEST_F ( PolygonConstructionTest  ,
DefaultConstruction   
)

◆ TEST_F() [13/92]

TEST_F ( PolygonConstructionTest  ,
MoveAssignment   
)

Definition at line 284 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [14/92]

TEST_F ( PolygonConstructionTest  ,
MoveConstruction   
)

Definition at line 261 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [15/92]

TEST_F ( PolygonConstructionTest  ,
SelfCopyAssignment   
)

◆ TEST_F() [16/92]

TEST_F ( PolygonContainmentTest  ,
OpenPolygonContainmentThrows   
)

◆ TEST_F() [17/92]

TEST_F ( PolygonContainmentTest  ,
PointInsidePolygon   
)

Definition at line 716 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [18/92]

TEST_F ( PolygonContainmentTest  ,
PointNearEdge   
)

Definition at line 728 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [19/92]

TEST_F ( PolygonContainmentTest  ,
PointOutsidePolygon   
)

Definition at line 722 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [20/92]

◆ TEST_F() [21/92]

◆ TEST_F() [22/92]

◆ TEST_F() [23/92]

TEST_F ( PolygonFromRegularTest  ,
AssignFromRegularPolygon   
)

◆ TEST_F() [24/92]

TEST_F ( PolygonFromRegularTest  ,
ConstructFromRegularPolygon   
)

◆ TEST_F() [25/92]

◆ TEST_F() [26/92]

TEST_F ( PolygonFromTriangleTest  ,
ConstructFromTriangle   
)

◆ TEST_F() [27/92]

◆ TEST_F() [28/92]

TEST_F ( PolygonIntersectionTest  ,
SegmentDoesNotIntersectPolygon   
)

Definition at line 611 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [29/92]

TEST_F ( PolygonIntersectionTest  ,
SegmentInsidePolygon   
)

Definition at line 617 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [30/92]

TEST_F ( PolygonIntersectionTest  ,
SegmentIntersectsPolygon   
)

Definition at line 605 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [31/92]

TEST_F ( PolygonRemoveVertexTest  ,
RemoveExistingVertex   
)

Definition at line 762 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [32/92]

TEST_F ( PolygonRemoveVertexTest  ,
RemoveNonExistingVertexThrows   
)

Definition at line 770 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [33/92]

◆ TEST_F() [34/92]

TEST_F ( PolygonSegmentAccessTest  ,
GetFirstSegmentEmptyPolygonThrows   
)

◆ TEST_F() [35/92]

TEST_F ( PolygonSegmentAccessTest  ,
GetFirstSegmentSingleVertexThrows   
)

◆ TEST_F() [36/92]

◆ TEST_F() [37/92]

TEST_F ( PolygonSegmentIteratorTest  ,
ClosedPolygonIteratesNSegments   
)

◆ TEST_F() [38/92]

TEST_F ( PolygonSegmentIteratorTest  ,
EmptyPolygonThrows   
)

Definition at line 572 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [39/92]

◆ TEST_F() [40/92]

TEST_F ( PolygonSegmentIteratorTest  ,
OpenPolygonIteratesNMinus1Segments   
)

◆ TEST_F() [41/92]

TEST_F ( PolygonSegmentIteratorTest  ,
SingleVertexPolygonThrows   
)

◆ TEST_F() [42/92]

TEST_F ( PolygonSelfIntersectionTest  ,
SelfIntersectingAddVertexThrows   
)

◆ TEST_F() [43/92]

TEST_F ( PolygonSelfIntersectionTest  ,
SelfIntersectingVertexThrows   
)

◆ TEST_F() [44/92]

TEST_F ( PolygonSelfIntersectionTest  ,
ValidPolygonConstruction   
)

◆ TEST_F() [45/92]

TEST_F ( PolygonVertexAccessTest  ,
GetFirstVertex   
)

◆ TEST_F() [46/92]

TEST_F ( PolygonVertexAccessTest  ,
GetFirstVertexEmptyPolygonThrows   
)

◆ TEST_F() [47/92]

TEST_F ( PolygonVertexAccessTest  ,
GetLastVertex   
)

◆ TEST_F() [48/92]

TEST_F ( PolygonVertexAccessTest  ,
GetLastVertexEmptyPolygonThrows   
)

◆ TEST_F() [49/92]

TEST_F ( PolygonVertexAccessTest  ,
GetNextVertex   
)

Definition at line 417 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::next().

◆ TEST_F() [50/92]

TEST_F ( PolygonVertexAccessTest  ,
GetPrevVertex   
)

◆ TEST_F() [51/92]

TEST_F ( PolygonVertexAccessTest  ,
VertexBelongsToPolygon   
)

Definition at line 405 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [52/92]

TEST_F ( PolygonVertexAccessTest  ,
VertexDoesNotBelongToPolygon   
)

Definition at line 411 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [53/92]

TEST_F ( PolygonVertexIteratorTest  ,
EmptyPolygonThrows   
)

Definition at line 518 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [54/92]

◆ TEST_F() [55/92]

TEST_F ( PolygonVertexIteratorTest  ,
IterateAllVertices   
)

◆ TEST_F() [56/92]

◆ TEST_F() [57/92]

◆ TEST_F() [58/92]

◆ TEST_F() [59/92]

◆ TEST_F() [60/92]

TEST_F ( RegularPolygonConstructionTest  ,
LessThanThreeSidesThrows   
)

Definition at line 843 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [61/92]

TEST_F ( RegularPolygonConstructionTest  ,
RadiusCalculation   
)

◆ TEST_F() [62/92]

◆ TEST_F() [63/92]

◆ TEST_F() [64/92]

◆ TEST_F() [65/92]

◆ TEST_F() [66/92]

◆ TEST_F() [67/92]

TEST_F ( RegularPolygonRotationTest  ,
NoRotation   
)

◆ TEST_F() [68/92]

TEST_F ( RegularPolygonRotationTest  ,
RotationChangesVertexPositions   
)

◆ TEST_F() [69/92]

◆ TEST_F() [70/92]

◆ TEST_F() [71/92]

◆ TEST_F() [72/92]

◆ TEST_F() [73/92]

◆ TEST_F() [74/92]

◆ TEST_F() [75/92]

◆ TEST_F() [76/92]

◆ TEST_F() [77/92]

◆ TEST_F() [78/92]

◆ TEST_F() [79/92]

◆ TEST_F() [80/92]

TEST_F ( RegularPolygonVertexTest  ,
GetFirstVertex   
)

Definition at line 885 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and points_equal().

◆ TEST_F() [81/92]

TEST_F ( RegularPolygonVertexTest  ,
GetLastVertex   
)

Definition at line 893 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and points_equal().

◆ TEST_F() [82/92]

TEST_F ( RegularPolygonVertexTest  ,
GetVertexInRange   
)

Definition at line 873 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [83/92]

TEST_F ( RegularPolygonVertexTest  ,
GetVertexOutOfRangeThrows   
)

Definition at line 879 of file polygon_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [84/92]

TEST_F ( RegularPolygonVertexTest  ,
VerticesAreEquidistantFromCenter   
)

◆ TEST_F() [85/92]

TEST_F ( VertexTest  ,
ConstructFromPoint   
)

◆ TEST_F() [86/92]

TEST_F ( VertexTest  ,
CopyAssignment   
)

◆ TEST_F() [87/92]

TEST_F ( VertexTest  ,
CopyConstruction   
)

◆ TEST_F() [88/92]

TEST_F ( VertexTest  ,
DefaultConstruction   
)

◆ TEST_F() [89/92]

TEST_F ( VertexTest  ,
DlinkToVertexConstConversion   
)

◆ TEST_F() [90/92]

TEST_F ( VertexTest  ,
DlinkToVertexConversion   
)

◆ TEST_F() [91/92]

TEST_F ( VertexTest  ,
SelfAssignment   
)

◆ TEST_F() [92/92]

TEST_F ( VertexTest  ,
ToPointReturnsCorrectPointValue   
)

Variable Documentation

◆ EPSILON

constexpr double EPSILON = 1e-6
constexpr

Definition at line 54 of file polygon_test.cc.

Referenced by TEST_F(), TEST_F(), TEST_F(), and TEST_F().