scide: DocManager - report warnings via the status bar
[supercollider.git] / testsuite / supernova / memory-pool_test.cpp
blob84b61276096caa2176e77fcb7281c8fa843eb8cd
1 #include <boost/test/unit_test.hpp>
3 #include <vector>
4 #include <set>
6 #include "server/memory_pool.hpp"
8 namespace nova
10 simple_pool<false> rt_pool;
11 } /* namespace nova */
13 using namespace nova;
15 BOOST_AUTO_TEST_CASE( init_pool )
17 rt_pool.init(1024*1024);
21 BOOST_AUTO_TEST_CASE( vector_test )
23 rt_pool.init(1024*1024);
25 int size = 1024;
26 std::vector<int, nova::rt_pool_allocator<int> > vec;
27 for (int i = 0; i != size; ++i)
28 vec.push_back(-i);
31 BOOST_AUTO_TEST_CASE( set_test )
33 int size = 1024;
34 std::set<int, std::less<int>, nova::rt_pool_allocator<int> > vec;
35 for (int i = 0; i != size; ++i)
36 vec.insert(-i);