8#define BOOST_TEST_DYN_LINK
9#include <boost/test/unit_test.hpp>
10#include "NN/Mem_type/MemFast.hpp"
11#include "NN/Mem_type/MemBalanced.hpp"
12#include "NN/Mem_type/MemMemoryWise.hpp"
14BOOST_AUTO_TEST_SUITE( Mem_type_test )
16template<
typename Mem_type>
23 mem.init_to_zero(128,10);
27 BOOST_REQUIRE_EQUAL(mem.getNelements(0),1ul);
29 BOOST_REQUIRE_EQUAL(mem.get(0,0),5ul);
31 mem.init_to_zero(128,5);
33 BOOST_REQUIRE_EQUAL(mem.getNelements(0),0ul);
36BOOST_AUTO_TEST_CASE ( Mem_type_check )
38 test_mem_type<Mem_fast<>>();
39 test_mem_type<Mem_bal<>>();
40 test_mem_type<Mem_mw<>>();
43BOOST_AUTO_TEST_SUITE_END()