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