Lines Matching defs:array
33 int array [4] = { 3, 1, 4, 2 };
34 sort(array, array + 4, less<int>());
36 CPPUNIT_ASSERT(array[0]==1);
37 CPPUNIT_ASSERT(array[1]==2);
38 CPPUNIT_ASSERT(array[2]==3);
39 CPPUNIT_ASSERT(array[3]==4);
43 int array [4] = { 3, 1, 4, 2 };
44 sort(array, array + 4, less_equal<int>());
46 CPPUNIT_ASSERT(array[0]==1);
47 CPPUNIT_ASSERT(array[1]==2);
48 CPPUNIT_ASSERT(array[2]==3);
49 CPPUNIT_ASSERT(array[3]==4);