list-container-test.h revision b75c8c079c27d43ecebd305ec1796d5ebd5b9bb9
#include <cxxtest/TestSuite.h>
#include <stdarg.h>
#include "util/list-container.h"
bool ret = true;
ret = false;
}
ret = false;
}
n_values--;
++iter;
}
}
{
}
virtual ~ListContainerTest() {}
// createSuite and destroySuite get us per-suite setup and teardown
// without us having to worry about static initialization order, etc.
void testRangeConstructor()
{
int const * values_iter=values;
++values_iter;
}
}
void testEqualityTests()
{
int const a[] = { 1, 2, 3, 4 };
int const b[] = { 1, 2, 3, 4 };
int const c[] = { 1, 2, 3 };
int const d[] = { 1, 2, 3, 5 };
}
void testLessThan()
{
int const a[] = { 1, 2, 3, 4 };
int const b[] = { 1, 2, 2, 4 };
int const c[] = { 1, 2, 4, 4 };
int const d[] = { 1, 2, 3 };
}
void testAssignmentOperator()
{
int const a[] = { 1, 2, 3, 4 };
}
void testFillConstructor()
{
}
void testContainerSize()
{
// max_size() and size() return ListContainer<>::size_type which is unsigned int
int const a[] = { 1, 2, 3 };
}
void testAppending()
{
c.push_back(1);
c.push_back(2);
c.push_back(3);
}
void testBulkAppending()
{
int const a[] = { 1, 2, 3, 4 };
int const b[] = { 5, 6, 7 };
}
void testPrepending()
{
c.push_front(1);
c.push_front(2);
c.push_front(3);
}
void testSingleValueInsertion()
{
++pos;
}
void testSingleValueErasure()
{
++pos;
++pos;
TS_ASSERT(check_values(c, 0));
}
void testPopFront()
{
t.pop_front();
t.push_back(23);
t.pop_front();
t.pop_front();
t.pop_front();
TS_ASSERT(check_values(t, 0));
t.push_back(42);
}
void testEraseAfter()
{
}
};
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :