ReactOS  0.4.15-dev-1384-g878186b
LimitTest Class Reference
Inheritance diagram for LimitTest:
Collaboration diagram for LimitTest:

Protected Member Functions

void test ()
 
void qnan_test ()
 

Private Member Functions

 CPPUNIT_TEST_SUITE (LimitTest)
 
 CPPUNIT_TEST (test)
 
 CPPUNIT_TEST (qnan_test)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Definition at line 27 of file limits_test.cpp.

Member Function Documentation

◆ CPPUNIT_TEST() [1/2]

LimitTest::CPPUNIT_TEST ( test  )
private

◆ CPPUNIT_TEST() [2/2]

LimitTest::CPPUNIT_TEST ( qnan_test  )
private

◆ CPPUNIT_TEST_SUITE()

LimitTest::CPPUNIT_TEST_SUITE ( LimitTest  )
private

◆ CPPUNIT_TEST_SUITE_END()

LimitTest::CPPUNIT_TEST_SUITE_END ( )
private

◆ qnan_test()

void LimitTest::qnan_test ( )
protected

Definition at line 310 of file limits_test.cpp.

310  {
311  CPPUNIT_CHECK(test_qnan(float()));
312  CPPUNIT_CHECK(test_qnan(double()));
313 # if !defined ( _STLP_NO_LONG_DOUBLE )
314  typedef long double long_double;
315  CPPUNIT_CHECK(test_qnan(long_double()));
316 # endif
317 }
#define CPPUNIT_CHECK(X)
Definition: cppunit_mini.h:195
bool test_qnan(const _Tp &)

◆ test()

void LimitTest::test ( )
protected

Definition at line 274 of file limits_test.cpp.

274  {
277  typedef signed char signed_char;
279  typedef unsigned char unsigned_char;
281 # if defined (_STLP_HAS_WCHAR_T) && !defined (_STLP_WCHAR_T_IS_USHORT)
283 # endif
285  typedef unsigned short unsigned_short;
286  CPPUNIT_CHECK(test_unsigned_integral_limits(unsigned_short()));
288  typedef unsigned int unsigned_int;
291  typedef unsigned long unsigned_long;
293 # if defined (_STLP_LONG_LONG)
294  typedef _STLP_LONG_LONG long_long;
296  typedef unsigned _STLP_LONG_LONG unsigned_long_long;
297  CPPUNIT_CHECK(test_unsigned_integral_limits(unsigned_long_long()));
298 #endif
299 
301  CPPUNIT_CHECK(test_float_limits(double()));
302 # if !defined ( _STLP_NO_LONG_DOUBLE )
303  typedef long double long_double;
304  CPPUNIT_CHECK(test_float_limits(long_double()));
305 # endif
306 
308 }
bool test_unsigned_integral_limits(const _Tp &__val)
#define _STLP_LONG_LONG
Definition: _apcc.h:12
#define CPPUNIT_CHECK(X)
Definition: cppunit_mini.h:195
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
bool test_float_limits(const _Tp &)
bool test_signed_integral_limits(const _Tp &__val)
bool test_integral_limits_base(const _Tp &, bool unknown_sign=true, bool is_signed=true)
Definition: limits_test.cpp:70
bool test_integral_limits(const _Tp &val, bool unknown_sign=true, bool is_signed=true)
Definition: limits_test.cpp:88

The documentation for this class was generated from the following file: