Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# vector_test.cpp

Go to the documentation of this file.

    00001 #include <gslib/test/assert_new.h>
    00002 #define BOOST_AUTO_TEST_MAIN
    00003 #include <boost/test/auto_unit_test.hpp>
    00004 #include <gslib/static_container/vector.h>
    00005 #include "basic_sequence.h"
    00006 #include "dump.h"
    00007
    00008 using namespace gslib;
    00009 using namespace static_container;
    00010
    00011 struct vectorgen {
    00012     template < typename Value, size_t Size >
    00013     struct gen {
    00014         typedef vector< Value, Size >   type;
    00015     };
    00016 };
    00017
    00019 BOOST_AUTO_UNIT_TEST( test_vector_basic ) {
    00020     test::assert_new::begin(); // new 呼び出しに怒り狂う！
    00021     basic_sequence< vectorgen >();
    00022     dump< vectorgen >();
    00023     test::assert_new::end();
    00024 }
    00025