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

string_test.cpp

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

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

Include dependency graph

ソースコードを見る。

関数

void test_basic ()
void test_compare ()
void test_dump ()
int test_main (int argc, char *argv[])


関数

void test_basic  ) 
 

テスト:
static_container::string

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

参照元 test_main().

00009                   {
00010     string< 10 >    s;
00011     BOOST_REQUIRE( s.empty() );
00012     BOOST_REQUIRE( 0 == s.size() );
00013     string< 10 >    str( "hello" );
00014     BOOST_REQUIRE( "hello" == str );
00015     BOOST_REQUIRE( strlen( "hello" ) == str.size() );
00016     string< 12 >    str2( "hello" );
00017     BOOST_REQUIRE( str2 == str );
00018     string< 15 >    str3( str );
00019     str3 += str2;
00020     BOOST_REQUIRE( "hellohello" == str3 );
00021     str3.push_back( 'c' );
00022     BOOST_REQUIRE( "hellohelloc" == str3 );
00023     str3.pop_back();
00024     BOOST_REQUIRE( "hellohello" == str3 );
00025     str3.append( str2 );
00026     BOOST_REQUIRE( "hellohellohello" == str3 );
00027 }

void test_compare  ) 
 

テスト:
static_container::string

string_test.cpp30 行で定義されています。

参照元 test_main().

00030                     {
00031     string< 10 >    s, t;
00032     BOOST_REQUIRE( t == s );
00033     BOOST_REQUIRE( "" == s );
00034     BOOST_REQUIRE( "h" != s );
00035     BOOST_REQUIRE( s < "h" );
00036     BOOST_REQUIRE( false == ( s < t ) );
00037     s = "hello";
00038     BOOST_REQUIRE( "hello" == s );
00039     BOOST_REQUIRE( "hello" != t );
00040     t = "hellp";
00041     BOOST_REQUIRE( s < t );
00042 }

void test_dump  ) 
 

テスト:
static_container::string

string_test.cpp45 行で定義されています。

参照元 test_main().

00045                  {
00046     string< 10 >    s;
00047     test::dump( s );
00048     s = "hello";
00049     test::dump( s );
00050     s = "日本語";
00051     test::dump( s );    
00052 }

int test_main int  argc,
char *  argv[]
 

string_test.cpp54 行で定義されています。

参照先 test_basic(), test_compare(), と test_dump().

00054                                         {
00055     test::begin(); // new 呼び出しに怒り狂う!
00056     test_basic();
00057     test_compare();
00058     test_dump();
00059     return 0;
00060 }


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