Lines Matching refs:years
94 vector<int> years; in sort_test() local
95 years.push_back(1962); in sort_test()
96 years.push_back(1992); in sort_test()
97 years.push_back(2001); in sort_test()
98 years.push_back(1999); in sort_test()
99 sort(years.begin(), years.end()); in sort_test()
100 CPPUNIT_ASSERT(years[0]==1962); in sort_test()
101 CPPUNIT_ASSERT(years[1]==1992); in sort_test()
102 CPPUNIT_ASSERT(years[2]==1999); in sort_test()
103 CPPUNIT_ASSERT(years[3]==2001); in sort_test()
106 deque<int> years; in sort_test() local
107 years.push_back(1962); in sort_test()
108 years.push_back(1992); in sort_test()
109 years.push_back(2001); in sort_test()
110 years.push_back(1999); in sort_test()
111 sort(years.begin(), years.end()); // <-- changed! in sort_test()
112 CPPUNIT_ASSERT(years[0]==1962); in sort_test()
113 CPPUNIT_ASSERT(years[1]==1992); in sort_test()
114 CPPUNIT_ASSERT(years[2]==1999); in sort_test()
115 CPPUNIT_ASSERT(years[3]==2001); in sort_test()