Home | History | Annotate | Download | only in unit

Lines Matching defs:array

32   int array [4] = { 4, 9, 7, 1 };
34 sort(array, array + 4, binary_negate<greater<int> >(greater<int>()));
35 CPPUNIT_ASSERT(array[0]==1);
36 CPPUNIT_ASSERT(array[1]==4);
37 CPPUNIT_ASSERT(array[2]==7);
38 CPPUNIT_ASSERT(array[3]==9);
42 int array [4] = { 4, 9, 7, 1 };
43 sort(array, array + 4, not2(greater<int>()));
44 CPPUNIT_ASSERT(array[0]==1);
45 CPPUNIT_ASSERT(array[1]==4);
46 CPPUNIT_ASSERT(array[2]==7);
47 CPPUNIT_ASSERT(array[3]==9);