Lines Matching defs:result
71 int result[6];
72 reverse_copy((int*)numbers, (int*)numbers + 6, (int*)result);
74 CPPUNIT_ASSERT(result[0]==5);
75 CPPUNIT_ASSERT(result[1]==4);
76 CPPUNIT_ASSERT(result[2]==3);
77 CPPUNIT_ASSERT(result[3]==2);
78 CPPUNIT_ASSERT(result[4]==1);
79 CPPUNIT_ASSERT(result[5]==0);
106 int result[6] = { 0, 0, 0, 0, 0, 0 };
108 replace_copy((int*)numbers, (int*)numbers + 6, (int*)result, 2, 42);
109 CPPUNIT_ASSERT(result[0]==0);
110 CPPUNIT_ASSERT(result[1]==1);
111 CPPUNIT_ASSERT(result[2]==42);
112 CPPUNIT_ASSERT(result[3]==0);
113 CPPUNIT_ASSERT(result[4]==1);
114 CPPUNIT_ASSERT(result[5]==42);
219 int result[6] = { 0, 0, 0, 0, 0, 0 };
221 remove_copy((int*)numbers, (int*)numbers + 6, (int*)result, 2);
223 CPPUNIT_ASSERT(result[0]==1);
224 CPPUNIT_ASSERT(result[1]==3);
225 CPPUNIT_ASSERT(result[2]==1);
226 CPPUNIT_ASSERT(result[3]==3);
227 CPPUNIT_ASSERT(result[4]==0);
228 CPPUNIT_ASSERT(result[5]==0);
234 int result[6] = { 0, 0, 0, 0, 0, 0 };
236 remove_copy_if((int*)numbers, (int*)numbers + 6, (int*)result, odd);
239 CPPUNIT_ASSERT(result[0]==2);
240 CPPUNIT_ASSERT(result[1]==2);
241 CPPUNIT_ASSERT(result[2]==0);
242 CPPUNIT_ASSERT(result[3]==0);
243 CPPUNIT_ASSERT(result[4]==0);
244 CPPUNIT_ASSERT(result[5]==0);