Definition at line 16 of file MapOfVectors_t.cpp.
TestMapOfVectors::TestMapOfVectors |
( |
| ) |
|
Definition at line 47 of file MapOfVectors_t.cpp.
48 int v[10] = {0,1,2,3,4,5,6,7,8,9};
50 for (
int i=0;
i<10;++
i) {
auto begin(Data< Value > const &data)
TestMapOfVectors::~TestMapOfVectors |
( |
| ) |
|
TestMapOfVectors::CPPUNIT_TEST |
( |
filling |
| ) |
|
|
private |
TestMapOfVectors::CPPUNIT_TEST |
( |
find |
| ) |
|
|
private |
TestMapOfVectors::CPPUNIT_TEST |
( |
iterator |
| ) |
|
|
private |
TestMapOfVectors::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
|
private |
void TestMapOfVectors::default_ctor |
( |
| ) |
|
Definition at line 61 of file MapOfVectors_t.cpp.
63 CPPUNIT_ASSERT(m.size()==0);
64 CPPUNIT_ASSERT(m.empty());
65 CPPUNIT_ASSERT(m.m_keys.size()==0);
66 CPPUNIT_ASSERT(m.m_offsets.size()==1);
67 CPPUNIT_ASSERT(m.m_offsets[0]==0);
68 CPPUNIT_ASSERT(m.m_data.size()==0);
art::MapOfVectors< int, int > MII
void TestMapOfVectors::filling |
( |
| ) |
|
Definition at line 72 of file MapOfVectors_t.cpp.
74 CPPUNIT_ASSERT(
m.size()==
om.size());
75 CPPUNIT_ASSERT(!
m.empty());
76 CPPUNIT_ASSERT(
m.m_keys.size()==
om.size());
77 CPPUNIT_ASSERT(
m.m_offsets.size()==
om.size()+1);
78 CPPUNIT_ASSERT(
m.m_offsets[0]==0);
79 CPPUNIT_ASSERT(
m.m_offsets[
m.size()]==
tot);
80 CPPUNIT_ASSERT(
m.m_data.size()==
tot);
art::MapOfVectors< int, int > MII
void TestMapOfVectors::find |
( |
| ) |
|
Definition at line 83 of file MapOfVectors_t.cpp.
85 CPPUNIT_ASSERT(
m.find(-1)==
m.emptyRange());
87 MII::range
r =
m.find((*p).first);
88 CPPUNIT_ASSERT(
int(r.size())==(*p).first);
89 CPPUNIT_ASSERT(std::equal((*p).second.begin(), (*p).second.end(),r.begin()));
art::MapOfVectors< int, int > MII
void TestMapOfVectors::iterator |
( |
| ) |
|
Definition at line 93 of file MapOfVectors_t.cpp.
98 CPPUNIT_ASSERT((*p).first==(*op).first);
99 CPPUNIT_ASSERT(std::equal((*p).second.begin(), (*p).second.end(),(*op).second.begin()));
100 lt+=(*p).second.size();
103 CPPUNIT_ASSERT(lt==
tot);
art::MapOfVectors< int, int > MII
void TestMapOfVectors::setUp |
( |
| ) |
|
|
inline |
void TestMapOfVectors::tearDown |
( |
| ) |
|
|
inline |
unsigned int TestMapOfVectors::tot |
The documentation for this class was generated from the following file: