Definition at line 12 of file bsearch_test.cpp.
◆ bsearch1()
void BsearchTest::bsearch1 |
( |
| ) |
|
|
protected |
Definition at line 30 of file bsearch_test.cpp.
31{
33 for(
int i = 0;
i < 100;
i++)
36}
bool binary_search(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
#define CPPUNIT_ASSERT(X)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
◆ bsearch2()
void BsearchTest::bsearch2 |
( |
| ) |
|
|
protected |
Definition at line 38 of file bsearch_test.cpp.
39{
40 char const* labels[] = { "aa", "dd", "ff", "jj", "ss", "zz" };
41 const unsigned count =
sizeof(labels) /
sizeof(labels[0]);
42
43
45}
static bool str_compare(const char *a_, const char *b_)
GLuint GLuint GLsizei count
◆ CPPUNIT_TEST() [1/2]
◆ CPPUNIT_TEST() [2/2]
◆ CPPUNIT_TEST_SUITE()
◆ CPPUNIT_TEST_SUITE_END()
BsearchTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
|
private |
◆ str_compare()
Definition at line 46 of file bsearch_test.cpp.
47{
48 return strcmp(a_, b_) < 0 ? 1 : 0;
49}
int strcmp(const char *String1, const char *String2)
Referenced by bsearch2().
The documentation for this class was generated from the following file: