Home | Info | Community | Development | myReactOS | Contact Us
[protected]
Definition at line 50 of file unique_test.cpp.
{ const char* labels[] = {"Q", "Q", "W", "W", "E", "E", "R", "T", "T", "Y", "Y"}; const unsigned count = sizeof(labels) / sizeof(labels[0]); unique((const char**)labels, (const char**)labels + count, str_equal); // QWERTY CPPUNIT_ASSERT(*labels[0] == 'Q'); CPPUNIT_ASSERT(*labels[1] == 'W'); CPPUNIT_ASSERT(*labels[2] == 'E'); CPPUNIT_ASSERT(*labels[3] == 'R'); CPPUNIT_ASSERT(*labels[4] == 'T'); CPPUNIT_ASSERT(*labels[5] == 'Y'); }