ReactOS  0.4.15-dev-3440-g915569a
strstream_test.cpp
Go to the documentation of this file.
1 #include <string>
2 
3 #if !defined (STLPORT) || !defined (_STLP_USE_NO_IOSTREAMS)
4 # include <strstream>
5 # include <limits>
6 
7 # include "cppunit/cppunit_proxy.h"
8 
9 # if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
10 using namespace std;
11 # endif
12 
13 //
14 // TestCase class
15 //
16 class StrstreamTest : public CPPUNIT_NS::TestCase
17 {
21 
22 private:
23  void input();
24 };
25 
27 
28 //
29 // tests implementation
30 //
32 {
33 # if defined (STLPORT) && defined (_STLP_LONG_LONG)
34  {
35  istrstream is("652208307");
37  is >> rval;
38  CPPUNIT_ASSERT( rval == 652208307 );
39  }
40  {
41  istrstream is("-652208307");
43  is >> rval;
44  CPPUNIT_ASSERT( rval == -652208307 );
45  }
46 # endif
47 }
48 
49 #endif
#define CPPUNIT_TEST_SUITE(X)
Definition: cppunit_mini.h:142
#define CPPUNIT_TEST(X)
Definition: cppunit_mini.h:182
Definition: features.h:417
CPPUNIT_TEST_SUITE_REGISTRATION(StrstreamTest)
#define _STLP_LONG_LONG
Definition: _apcc.h:12
#define CPPUNIT_TEST_SUITE_END()
Definition: cppunit_mini.h:191
float rval
Definition: cylfrac.c:48
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
GLenum GLenum GLenum input
Definition: glext.h:9031
#define istrstream
Definition: _strstream.h:38