ReactOS 0.4.15-dev-8100-g1887773
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
8
9# if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
10using namespace std;
11# endif
12
13//
14// TestCase class
15//
16class StrstreamTest : public CPPUNIT_NS::TestCase
17{
21
22private:
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 _STLP_LONG_LONG
Definition: _apcc.h:12
#define istrstream
Definition: _strstream.h:38
CPPUNIT_TEST_SUITE(StrstreamTest)
CPPUNIT_TEST(input)
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
Definition: cppunit_mini.h:193
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
float rval
Definition: cylfrac.c:48
GLenum GLenum GLenum input
Definition: glext.h:9031
Definition: features.h:417