#include "static_container/test/assert_new.h"#include <boost/test/minimal.hpp>#include "static_container/list_hash.h"#include <string.h>hash_test.cppのインクルード依存関係図

関数 | |
| void | test_int_hash () |
| int | test_main (int argc, char *argv[]) |
|
|
hash_test.cpp の 9 行で定義されています。 参照元 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 }
|
|
||||||||||||
|
hash_test.cpp の 28 行で定義されています。 参照先 test_int_hash().
00028 {
00029 test::begin(); // new 呼び出しに怒り狂う!
00030 test_int_hash();
00031 return 0;
00032 } |
1.3.6