queue: minor cleanup

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-01-11 09:36:37 -05:00
parent 1dfe475ade
commit 8d3010a31e
1 changed files with 3 additions and 2 deletions

View File

@ -40,8 +40,9 @@ void test_default()
test_equal(q.next(), (Track *)NULL);
}
void test_constructor(unsigned int flags)
void test_constructor()
{
unsigned int flags = Q_ENABLED | Q_RANDOM;
TestQueue q(flags);
test_equal(q.get_cur(), (unsigned)-1);
@ -376,7 +377,7 @@ int main(int argc, char **argv)
tags :: init();
run_test("Queue Default Constructor Test", test_default);
run_test("Queue Constructor Test", test_constructor, Q_ENABLED | Q_RANDOM);
run_test("Queue Constructor Test", test_constructor);
run_test("Queue Flag Test", test_flags);
run_test("Queue Add and Remove Test", test_add_remove);
run_test("Queue Track Updated Test", test_updated);