#include <iostream>
#include "ConfigExamples.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/base/Common.h"
#include <vector>
#include <list>
#include <set>
#include "DGtalCatch.h"
{
double t3[]= {1.0,-1.0,2.0,-2.0};
{
}
SECTION(
"Min/Max of vector components")
{
REQUIRE( (*p3.maxElement() == 2.0) );
REQUIRE( (*p3.minElement() == -2.0) );
}
{
}
}
TEMPLATE_TEST_CASE("STL Container test", "Description",
std::list<int>, std::vector<int>, std::set<int>)
{
TestType defaultConstructed;
SECTION(
"Size of the default constructed container")
{
REQUIRE( ( defaultConstructed.size() == 0 ) );
}
defaultConstructed.insert( defaultConstructed.begin(), 5 );
{
REQUIRE( ( defaultConstructed.size() == 1 ) );
}
}
Aim: Implements basic operations that will be used in Point and Vector classes.
DGtal is the top-level namespace which contains all DGtal functions and types.
boost::int32_t int32_t
signed 32-bit integer.
TEST_CASE("int container traits", "[int][traits]")
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))
PointVector< 3, double > RealPoint