| # | Line 194 | Line 194 | void VectorTestCase::testAccessEntries(){ | |
|---|---|---|
| 194 | //test () operator | |
| 195 | CPPUNIT_ASSERT_DOUBLES_EQUAL(v3(0) , 4.0, oopse::epsilon); | |
| 196 | ||
| 197 | + | Vec4 a1; |
| 198 | + | double *pa1 = a1.getArrayPointer(); |
| 199 | + | |
| 200 | + | pa1[0] = 4.0; |
| 201 | + | pa1[1] = 1.0; |
| 202 | + | pa1[2] = 3.0; |
| 203 | + | pa1[3] = 2.0; |
| 204 | + | |
| 205 | + | CPPUNIT_ASSERT(a1 == v3); |
| 206 | } | |
| 207 | ||
| 208 | void VectorTestCase::testOtherMemberFunctions(){ | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |