133{
135
136 testVector.resize(0);
137 check(m_failures, ++m_testNum, "New size is 0", 0U, testVector.size());
138
139 testVector.push_back(0);
140 testVector.push_back(1);
141 testVector.push_back(2);
142 testVector.push_back(3);
143 testVector.push_back(4);
144 testVector.push_back(5);
145 testVector.push_back(6);
146 testVector.push_back(7);
147 testVector.push_back(8);
148 testVector.push_back(9);
149 testVector.push_back(10);
150
151 check(m_failures, ++m_testNum, "New size is 11", 11U, testVector.size());
152
153 check(m_failures, ++m_testNum, "Access 4 bit element 0", 0U, testVector[0]);
154 check(m_failures, ++m_testNum, "Access 4 bit element 1", 1U, testVector[1]);
155 check(m_failures, ++m_testNum, "Access 4 bit element 2", 2U, testVector[2]);
156 check(m_failures, ++m_testNum, "Access 4 bit element 3", 3U, testVector[3]);
157 check(m_failures, ++m_testNum, "Access 4 bit element 4", 4U, testVector[4]);
158 check(m_failures, ++m_testNum, "Access 4 bit element 5", 5U, testVector[5]);
159 check(m_failures, ++m_testNum, "Access 4 bit element 6", 6U, testVector[6]);
160 check(m_failures, ++m_testNum, "Access 4 bit element 7", 7U, testVector[7]);
161 check(m_failures, ++m_testNum, "Access 4 bit element 8", 8U, testVector[8]);
162 check(m_failures, ++m_testNum, "Access 4 bit element 9", 9U, testVector[9]);
163 check(m_failures, ++m_testNum, "Access 4 bit element 10", 10U, testVector[10]);
164}