diff options
author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-12-14 16:41:51 (GMT) |
---|---|---|
committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-12-14 16:41:51 (GMT) |
commit | 55af790ebfc4d95c57be817eb1b02fa254220602 (patch) | |
tree | d16a55c49395d4e5177258bb63f19dd8854dd74d /Source/kwsys/testIOS.cxx | |
parent | db116b94e4a699e1b93153ce865a6f79aa401d65 (diff) | |
download | CMake-55af790ebfc4d95c57be817eb1b02fa254220602.zip CMake-55af790ebfc4d95c57be817eb1b02fa254220602.tar.gz CMake-55af790ebfc4d95c57be817eb1b02fa254220602.tar.bz2 |
BUG: Remove stringstream implementation, this was a wrong interface anyway.
Diffstat (limited to 'Source/kwsys/testIOS.cxx')
-rw-r--r-- | Source/kwsys/testIOS.cxx | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/Source/kwsys/testIOS.cxx b/Source/kwsys/testIOS.cxx index fdf7cd0..d699ae5 100644 --- a/Source/kwsys/testIOS.cxx +++ b/Source/kwsys/testIOS.cxx @@ -13,37 +13,8 @@ int main() { - const char refstring[] = "Hello, World!"; kwsys_ios::ostringstream ostr; - ostr << refstring; + ostr << "Hello, World!"; kwsys_ios::cout << ostr.str() << kwsys_ios::endl; - if( ostr.str() != refstring ) - { - return 1; - } - - - kwsys_ios::istringstream istr; - istr.str( refstring ); - kwsys_ios::cout << istr.str() << kwsys_ios::endl; - if( istr.str() != refstring ) - { - return 1; - } - - - const int val = 12345; - const char valstr[] = "12345"; - kwsys_ios::stringstream sstr; - sstr << val; - int v = 0; - sstr >> v; - kwsys_ios::cout << sstr.str() << kwsys_ios::endl; - if( /*v != val ||*/ sstr.str() != valstr) - { - kwsys_ios::cerr << v << " should be " << val << kwsys_ios::endl; - return 1; - } - return 0; } |