32#include "DGtal/base/Common.h"
33#include "ConfigTest.h"
34#include "DGtal/helpers/StdDefs.h"
36#include "DGtalCatch.h"
38#include "DGtal/kernel/PointVector.h"
39#include "DGtal/helpers/StdDefs.h"
40#include "DGtal/kernel/PointHashFunctions.h"
53 std::hash<Z3i::Point> myhashcpp11;
57 REQUIRE( myhashcpp11(p) == myhashcpp11(p_copy) );
63 REQUIRE( myhashcpp11(p) != myhashcpp11(q) );
66 SECTION(
"Higher dimension identity test")
69 Point26 pp=Point26::diagonal(12),
70 qq=(Point26::diagonal(11) + Point26::diagonal(1)),
71 rr=Point26::diagonal(13);
73 std::hash<Point26> myhash26cpp11;
75 REQUIRE( myhash26cpp11(pp) == myhash26cpp11(qq) );
76 REQUIRE( myhash26cpp11(pp) != myhash26cpp11(rr) );
DGtal is the top-level namespace which contains all DGtal functions and types.
TEST_CASE("Hash functions on DGtal::Point")
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))