メインページ | ネームスペース一覧 | クラス階層 | 構成 | ファイル一覧 | ネームスペースメンバ | 構成メンバ | ファイルメンバ | 関連ページ

hash_test.cpp

#include <gslib/test/assert_new.h>
#include <boost/test/auto_unit_test.hpp>
#include <gslib/static_container/list_hash.h>
#include <string.h>

hash_test.cppのインクルード依存関係図

Include dependency graph

ソースコードを見る。

ネームスペース

namespace  static_container

マクロ定義

#define BOOST_AUTO_TEST_MAIN

関数

 BOOST_AUTO_UNIT_TEST (test_int_hash)


マクロ定義

#define BOOST_AUTO_TEST_MAIN
 

hash_test.cpp2 行で定義されています。


関数

BOOST_AUTO_UNIT_TEST test_int_hash   ) 
 

テスト:
static_container::list_hash

hash_test.cpp11 行で定義されています。

00011                                       {
00012     test::assert_new::begin(); // new 呼び出しに怒り狂う!
00013     typedef list_hash<
00014         int,
00015         int,
00016         10 >    int_hash;
00017     
00018     int_hash ihash;
00019     ihash[ 0 ] = 100;
00020     ihash[ 5 ] = 20;
00021     
00022     BOOST_REQUIRE( 2 == ihash.size() );
00023     BOOST_REQUIRE( 100 == ihash[ 0 ] );
00024     BOOST_REQUIRE( 20 == ihash[ 5 ] );
00025     ihash[ 5 ] = 30;
00026     BOOST_REQUIRE( 30 == ihash[ 5 ] );
00027     BOOST_REQUIRE( 2 == ihash.size() );
00028     test::assert_new::end();
00029 }


static_containerに対してSat Nov 27 15:03:13 2004に生成されました。 doxygen 1.3.6