ReactOS  0.4.14-dev-1314-gacf135d
num_put_get_test.cpp File Reference
#include <limits>
#include <iomanip>
#include <string>
#include <sstream>
#include <cstdio>
#include "complete_digits.h"
#include "cppunit/cppunit_proxy.h"
Include dependency graph for num_put_get_test.cpp:

Go to the source code of this file.

Classes

class  NumPutGetTest
 
class  CommaSepNumPunct
 

Macros

#define CHECK_COMPLETE(type, val, base, showbase, showpos, casing, width, adjust, expected)
 
#define CHECK(type, val, base, expected)   CHECK_COMPLETE(type, val, base, noshowbase, noshowpos, nouppercase, 0, right, expected)
 
#define CHECK2(val, expected)
 

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (NumPutGetTest)
 

Macro Definition Documentation

◆ CHECK

Definition at line 622 of file num_put_get_test.cpp.

◆ CHECK2

#define CHECK2 (   val,
  expected 
)
Value:
os.str(""); os << fixed << setprecision(3) << showpos << val; \
CPPUNIT_ASSERT( os.str() == expected )
_STLP_PRIV _Ios_Manip_1< streamsize > _STLP_CALL setprecision(int __n)
Definition: _iomanip.h:119
ios_base &_STLP_CALL fixed(ios_base &__s)
Definition: _ios_base.h:332
GLuint GLfloat * val
Definition: glext.h:7180
ios_base &_STLP_CALL showpos(ios_base &__s)
Definition: _ios_base.h:285
BOOL expected
Definition: store.c:2063

Definition at line 1230 of file num_put_get_test.cpp.

◆ CHECK_COMPLETE

#define CHECK_COMPLETE (   type,
  val,
  base,
  showbase,
  showpos,
  casing,
  width,
  adjust,
  expected 
)
Value:
{ \
type tmp = val; \
ostringstream ostr; \
ostr << base << showbase << showpos << casing << setw(width) << adjust << tmp; \
CPPUNIT_CHECK( ostr.str() == expected ); \
}
GLint GLint GLsizei width
Definition: gl.h:1546
ios_base &_STLP_CALL showbase(ios_base &__s)
Definition: _ios_base.h:273
GLuint GLfloat * val
Definition: glext.h:7180
ios_base &_STLP_CALL showpos(ios_base &__s)
Definition: _ios_base.h:285
_STLP_PRIV _Ios_Manip_1< streamsize > _STLP_CALL setw(int __n)
Definition: _iomanip.h:125
BOOL expected
Definition: store.c:2063

Definition at line 614 of file num_put_get_test.cpp.

Function Documentation

◆ CPPUNIT_TEST_SUITE_REGISTRATION()

CPPUNIT_TEST_SUITE_REGISTRATION ( NumPutGetTest  )