ReactOS  0.4.15-dev-5112-g22d8c0f
IotaTest Class Reference
Inheritance diagram for IotaTest:
Collaboration diagram for IotaTest:

Protected Member Functions

void iota1 ()
 

Private Member Functions

 CPPUNIT_TEST_SUITE (IotaTest)
 
 CPPUNIT_TEST (iota1)
 
 CPPUNIT_TEST_SUITE_END ()
 

Private Attributes

 CPPUNIT_IGNORE
 

Detailed Description

Definition at line 13 of file iota_test.cpp.

Member Function Documentation

◆ CPPUNIT_TEST()

IotaTest::CPPUNIT_TEST ( iota1  )
private

◆ CPPUNIT_TEST_SUITE()

IotaTest::CPPUNIT_TEST_SUITE ( IotaTest  )
private

◆ CPPUNIT_TEST_SUITE_END()

IotaTest::CPPUNIT_TEST_SUITE_END ( )
private

◆ iota1()

void IotaTest::iota1 ( )
protected

Definition at line 31 of file iota_test.cpp.

32 {
33 #if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS)
34  int numbers[10];
35  iota(numbers, numbers + 10, 42);
36  CPPUNIT_ASSERT(numbers[0]==42);
37  CPPUNIT_ASSERT(numbers[1]==43);
38  CPPUNIT_ASSERT(numbers[2]==44);
39  CPPUNIT_ASSERT(numbers[3]==45);
40  CPPUNIT_ASSERT(numbers[4]==46);
41  CPPUNIT_ASSERT(numbers[5]==47);
42  CPPUNIT_ASSERT(numbers[6]==48);
43  CPPUNIT_ASSERT(numbers[7]==49);
44  CPPUNIT_ASSERT(numbers[8]==50);
45  CPPUNIT_ASSERT(numbers[9]==51);
46 #endif
47 }
_STLP_INLINE_LOOP void iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __val)
Definition: _numeric.h:174
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200

Member Data Documentation

◆ CPPUNIT_IGNORE

IotaTest::CPPUNIT_IGNORE
private

Definition at line 17 of file iota_test.cpp.


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