ReactOS  0.4.15-dev-1386-g5cb9f87
FillTest Class Reference
Inheritance diagram for FillTest:
Collaboration diagram for FillTest:

Protected Member Functions

void fill1 ()
 
void filln1 ()
 

Private Member Functions

 CPPUNIT_TEST_SUITE (FillTest)
 
 CPPUNIT_TEST (fill1)
 
 CPPUNIT_TEST (filln1)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Definition at line 13 of file fill_test.cpp.

Member Function Documentation

◆ CPPUNIT_TEST() [1/2]

FillTest::CPPUNIT_TEST ( fill1  )
private

◆ CPPUNIT_TEST() [2/2]

FillTest::CPPUNIT_TEST ( filln1  )
private

◆ CPPUNIT_TEST_SUITE()

FillTest::CPPUNIT_TEST_SUITE ( FillTest  )
private

◆ CPPUNIT_TEST_SUITE_END()

FillTest::CPPUNIT_TEST_SUITE_END ( )
private

◆ fill1()

void FillTest::fill1 ( )
protected

Definition at line 30 of file fill_test.cpp.

31 {
32  vector <int> v(10);
33  fill(v.begin(), v.end(), 42);
34 
35  CPPUNIT_ASSERT(v[0]==42);
36  CPPUNIT_ASSERT(v[1]==42);
37  CPPUNIT_ASSERT(v[2]==42);
38  CPPUNIT_ASSERT(v[3]==42);
39  CPPUNIT_ASSERT(v[4]==42);
40  CPPUNIT_ASSERT(v[5]==42);
41  CPPUNIT_ASSERT(v[6]==42);
42  CPPUNIT_ASSERT(v[7]==42);
43  CPPUNIT_ASSERT(v[8]==42);
44  CPPUNIT_ASSERT(v[9]==42);
45 }
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
Definition: _algobase.h:449
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
const GLdouble * v
Definition: gl.h:2040

◆ filln1()

void FillTest::filln1 ( )
protected

Definition at line 46 of file fill_test.cpp.

47 {
48  vector <int> v(10);
49  fill_n(v.begin(), v.size(), 42);
50 
51  CPPUNIT_ASSERT(v[0]==42);
52  CPPUNIT_ASSERT(v[1]==42);
53  CPPUNIT_ASSERT(v[2]==42);
54  CPPUNIT_ASSERT(v[3]==42);
55  CPPUNIT_ASSERT(v[4]==42);
56  CPPUNIT_ASSERT(v[5]==42);
57  CPPUNIT_ASSERT(v[6]==42);
58  CPPUNIT_ASSERT(v[7]==42);
59  CPPUNIT_ASSERT(v[8]==42);
60  CPPUNIT_ASSERT(v[9]==42);
61 }
_STLP_MOVE_TO_STD_NAMESPACE void fill_n(_OutputIter __first, _Size __n, const _Tp &__val)
Definition: _algobase.h:511
#define CPPUNIT_ASSERT(X)
Definition: cppunit_mini.h:200
const GLdouble * v
Definition: gl.h:2040

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