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

hash_test.cpp

#include "static_container/test/assert_new.h"
#include <boost/test/minimal.hpp>
#include "static_container/list_hash.h"
#include <string.h>

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

Include dependency graph

ソースコードを見る。

関数

void test_int_hash ()
int test_main (int argc, char *argv[])


関数

void test_int_hash  ) 
 

テスト:
static_container::list_hash

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

参照元 test_main().

00009                      {
00010     typedef list_hash<
00011         int,
00012         int,
00013         10 >    int_hash;
00014     
00015     int_hash ihash;
00016     ihash[ 0 ] = 100;
00017     ihash[ 5 ] = 20;
00018     
00019     BOOST_REQUIRE( 2 == ihash.size() );
00020     BOOST_REQUIRE( 100 == ihash[ 0 ] );
00021     BOOST_REQUIRE( 20 == ihash[ 5 ] );
00022     ihash[ 5 ] = 30;
00023     BOOST_REQUIRE( 30 == ihash[ 5 ] );
00024     BOOST_REQUIRE( 2 == ihash.size() ); 
00025 }

int test_main int  argc,
char *  argv[]
 

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

参照先 test_int_hash().

00028                                         {
00029     test::begin(); // new 呼び出しに怒り狂う!
00030     test_int_hash();
00031     return 0;
00032 }


static_containerに対してSat Jun 19 11:30:59 2004に生成されました。 doxygen 1.3.6