X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/35b55cbc1ccebe25a9e3cafd5f4fc1156bf79228..f7f0d6c7560a8f71707e7852a512469147aa9f84:/test/libapt/assert.h diff --git a/test/libapt/assert.h b/test/libapt/assert.h index 92b662dfa..fae9b6c64 100644 --- a/test/libapt/assert.h +++ b/test/libapt/assert.h @@ -53,3 +53,11 @@ void assertEqualsOr2(int const &expect1, int const &expect2, unsigned int const assertEqualsOr2(expect1, expect2, get, line); } + +// simple helper to quickly output a vectors +template < typename X > +void dumpVector(X vec) { + for (typename X::const_iterator v = vec.begin(); + v != vec.end(); ++v) + std::cout << *v << std::endl; +}