Project
Loading...
Searching...
No Matches
ContourCreator.cxx File Reference
#include <boost/test/unit_test.hpp>
#include <chrono>
#include <iostream>
#include "../include/MCHContour/ContourCreator.h"

Go to the source code of this file.

Classes

struct  ContourCreatorPolygons
 

Macros

#define BOOST_TEST_MODULE   Test MCHContour ContourCreator
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

 BOOST_AUTO_TEST_CASE (ContourCreationGeneratesEmptyContourForEmptyInput)
 
 BOOST_AUTO_TEST_CASE (ContourCreationThrowsIfInputPolygonsAreNotCounterClockwiseOriented)
 
 BOOST_AUTO_TEST_CASE (ContourCreationReturnsInputIfInputIsASinglePolygon)
 
 BOOST_AUTO_TEST_CASE (VerticalEdgeSortingMustSortSameAbcissaPointsLeftEdgeFirst)
 
 BOOST_AUTO_TEST_CASE (VerticalsToHorizontals)
 
 BOOST_AUTO_TEST_CASE (FinalizeContourThrowsIfNumberOfVerticalsDifferFromNumberOfHorizontals)
 
 BOOST_AUTO_TEST_CASE (FinalizeContourThrowsIfEndOfVerticalsDoNotMatchBeginOfHorizontals)
 
 BOOST_AUTO_TEST_CASE (FinalizeContourIEEEExample)
 
 BOOST_AUTO_TEST_CASE (FinalizeContourWithOneCommonVertex)
 
 BOOST_AUTO_TEST_CASE (CreateContourWithOneCommonVertex)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 17 of file ContourCreator.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 16 of file ContourCreator.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHContour ContourCreator
Author
Laurent Aphecetche

Definition at line 15 of file ContourCreator.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/10]

BOOST_AUTO_TEST_CASE ( ContourCreationGeneratesEmptyContourForEmptyInput  )

Definition at line 58 of file ContourCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/10]

BOOST_AUTO_TEST_CASE ( ContourCreationReturnsInputIfInputIsASinglePolygon  )

Definition at line 72 of file ContourCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/10]

BOOST_AUTO_TEST_CASE ( ContourCreationThrowsIfInputPolygonsAreNotCounterClockwiseOriented  )

Definition at line 65 of file ContourCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/10]

BOOST_AUTO_TEST_CASE ( CreateContourWithOneCommonVertex  )

Definition at line 164 of file ContourCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/10]

BOOST_AUTO_TEST_CASE ( FinalizeContourIEEEExample  )

Definition at line 132 of file ContourCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [6/10]

BOOST_AUTO_TEST_CASE ( FinalizeContourThrowsIfEndOfVerticalsDoNotMatchBeginOfHorizontals  )

Definition at line 125 of file ContourCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [7/10]

BOOST_AUTO_TEST_CASE ( FinalizeContourThrowsIfNumberOfVerticalsDifferFromNumberOfHorizontals  )

Definition at line 118 of file ContourCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [8/10]

BOOST_AUTO_TEST_CASE ( FinalizeContourWithOneCommonVertex  )

Definition at line 150 of file ContourCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [9/10]

BOOST_AUTO_TEST_CASE ( VerticalEdgeSortingMustSortSameAbcissaPointsLeftEdgeFirst  )

Definition at line 82 of file ContourCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [10/10]

BOOST_AUTO_TEST_CASE ( VerticalsToHorizontals  )

Definition at line 104 of file ContourCreator.cxx.