32 lines
661 B
C++
32 lines
661 B
C++
|
/*
|
||
|
* Copyright 2014 (c) Anna Schumaker.
|
||
|
*/
|
||
|
#include <queue.h>
|
||
|
#include "test.h"
|
||
|
|
||
|
class TestQueue : public Queue
|
||
|
{
|
||
|
public:
|
||
|
unsigned int get_cur() { return _cur; }
|
||
|
unsigned int get_flags() { return _flags; }
|
||
|
unsigned int get_length() { return _length; }
|
||
|
std::list <sort_info> get_sorder() { return _sort_order; };
|
||
|
};
|
||
|
|
||
|
void test_default()
|
||
|
{
|
||
|
TestQueue q;
|
||
|
|
||
|
test :: equal(q.get_cur(), (unsigned)-1);
|
||
|
test :: equal(q.get_flags(), (unsigned)0);
|
||
|
test :: equal(q.get_length(), (unsigned)0);
|
||
|
test :: equal(q.get_sorder().size(), (size_t)0);
|
||
|
test :: equal(q.next(), (Track *)NULL);
|
||
|
}
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
test_default();
|
||
|
return 0;
|
||
|
}
|