diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-22 10:51:06 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-22 10:51:06 -0800 |
commit | 62bd43f17fa279b67fbd4482580a91fc2db9c899 (patch) | |
tree | 4a060823ccb92ea5e885a4221c85fd10b9bf580d /fish_tests.cpp | |
parent | 917b4ff8bc542d161006cea8254885a193f5b8c3 (diff) |
Large set of changes to migrate sb_out and sb_err to wcstring
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r-- | fish_tests.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp index e81a7c35..21f5ded2 100644 --- a/fish_tests.cpp +++ b/fish_tests.cpp @@ -109,42 +109,6 @@ static void err( const wchar_t *blah, ... ) } /** - Stringbuffer test -*/ -static void sb_test() -{ - string_buffer_t b; - int res; - - sb_init( &b ); - - if( (res=sb_printf( &b, L"%ls%s", L"Testing ", "string_buffer_t " )) == -1 ) - { - err( L"Error %d while testing stringbuffers", res ); - } - - if( (res=sb_printf( &b, L"%ls", L"functionality" ))==-1) - { - err( L"Error %d while testing stringbuffers", res ); - } - - say( (wchar_t *)b.buff ); - - sb_clear( &b ); - - sb_printf( &b, L"%d %u %o %x %llX", -7, 99999999, 01234567, 0xdeadbeef, 0xdeadbeefdeadbeefll ); - if( wcscmp( (wchar_t *)b.buff, NUM_ANS) != 0 ) - { - err( L"numerical formating is broken, '%ls' != '%ls'", (wchar_t *)b.buff, NUM_ANS ); - } - else - say( L"numerical formating works" ); - - -} - - -/** Test the escaping/unescaping code by escaping/unescaping random strings and verifying that the original string comes back. */ |