37 #include <boost/unordered_set.hpp>
38 #include <boost/unordered_map.hpp>
39 #include <forward_list>
41 #include <unordered_set>
42 #include <unordered_map>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/ContainerTraits.h"
47 #include "DGtalCatch.h"
49 using namespace DGtal;
53 TEST_CASE(
"int container traits",
"[int][traits]" )
55 typedef int Container;
56 SECTION(
"Checking container traits" )
70 TEST_CASE(
"std::vector<> container traits",
"[vector][traits]" )
72 typedef std::vector<int> Container;
73 SECTION(
"Checking container traits" )
87 TEST_CASE(
"std::list<> container traits",
"[list][traits]" )
89 typedef std::list<int> Container;
90 SECTION(
"Checking container traits" )
104 TEST_CASE(
"std::deque<> container traits",
"[deque][traits]" )
106 typedef std::deque<int> Container;
107 SECTION(
"Checking container traits" )
121 TEST_CASE(
"std::forward_list<> container traits",
"[forward_list][traits]" )
123 typedef std::forward_list<int> Container;
124 SECTION(
"Checking container traits" )
138 TEST_CASE(
"std::array<> container traits",
"[array][traits]" )
140 typedef std::array<int, 10> Container;
141 SECTION(
"Checking container traits" )
155 TEST_CASE(
"std::set<> container traits",
"[set][traits]" )
157 typedef std::set<int> Container;
158 SECTION(
"Checking container traits" )
172 TEST_CASE(
"std::multiset<> container traits",
"[multiset][traits]" )
174 typedef std::multiset<int> Container;
175 SECTION(
"Checking container traits" )
189 TEST_CASE(
"std::map<> container traits",
"[map][traits]" )
191 typedef std::map<int,int> Container;
192 SECTION(
"Checking container traits" )
206 TEST_CASE(
"std::multimap<> container traits",
"[multimap][traits]" )
208 typedef std::multimap<int,int> Container;
209 SECTION(
"Checking container traits" )
223 TEST_CASE(
"boost::unordered_set<> container traits",
"[unordered_set][traits]" )
225 typedef boost::unordered_set<int> Container;
226 SECTION(
"Checking container traits" )
240 TEST_CASE(
"boost::unordered_map<> container traits",
"[unordered_map][traits]" )
242 typedef boost::unordered_map<int,int> Container;
243 SECTION(
"Checking container traits" )
257 TEST_CASE(
"boost::unordered_multiset<> container traits",
"[unordered_multiset][traits]" )
259 typedef boost::unordered_multiset<int> Container;
260 SECTION(
"Checking container traits" )
274 TEST_CASE(
"boost::unordered_multimap<> container traits",
"[unordered_multimap][traits]" )
276 typedef boost::unordered_multimap<int,int> Container;
277 SECTION(
"Checking container traits" )
291 TEST_CASE(
"std::unordered_set<> container traits",
"[unordered_set][traits]" )
293 typedef std::unordered_set<int> Container;
294 SECTION(
"Checking container traits" )
307 TEST_CASE(
"std::unordered_multiset<> container traits",
"[unordered_multiset][traits]" )
309 typedef std::unordered_multiset<int> Container;
310 SECTION(
"Checking container traits" )
324 TEST_CASE(
"std::unordered_map<> container traits",
"[unordered_map][traits]" )
326 typedef std::unordered_map<int,int> Container;
327 SECTION(
"Checking container traits" )
341 TEST_CASE(
"std::unordered_multimap<> container traits",
"[unordered_multimap][traits]" )
343 typedef std::unordered_multimap<int,int> Container;
344 SECTION(
"Checking container traits" )
DGtal is the top-level namespace which contains all DGtal functions and types.
TEST_CASE("int container traits", "[int][traits]")
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))