ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

strstream_test.cpp
Go to the documentation of this file.
00001 #include <string>
00002 
00003 #if !defined (STLPORT) || !defined (_STLP_USE_NO_IOSTREAMS)
00004 #  include <strstream>
00005 #  include <limits>
00006 
00007 #  include "cppunit/cppunit_proxy.h"
00008 
00009 #  if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
00010 using namespace std;
00011 #  endif
00012 
00013 //
00014 // TestCase class
00015 //
00016 class StrstreamTest : public CPPUNIT_NS::TestCase
00017 {
00018   CPPUNIT_TEST_SUITE(StrstreamTest);
00019   CPPUNIT_TEST(input);
00020   CPPUNIT_TEST_SUITE_END();
00021 
00022 private:
00023   void input();
00024 };
00025 
00026 CPPUNIT_TEST_SUITE_REGISTRATION(StrstreamTest);
00027 
00028 //
00029 // tests implementation
00030 //
00031 void StrstreamTest::input()
00032 {
00033 #  if defined (STLPORT) && defined (_STLP_LONG_LONG)
00034   {
00035     istrstream is("652208307");
00036     _STLP_LONG_LONG rval = 0;
00037     is >> rval;
00038     CPPUNIT_ASSERT( rval == 652208307 );
00039   }
00040   {
00041     istrstream is("-652208307");
00042     _STLP_LONG_LONG rval = 0;
00043     is >> rval;
00044     CPPUNIT_ASSERT( rval == -652208307 );
00045   }
00046 #  endif
00047 }
00048 
00049 #endif

Generated on Sun May 27 2012 04:35:52 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.