test case to check whether instances are sorted
This commit is contained in:
parent
8eb92001b3
commit
c3ad3f78e9
|
@ -66,9 +66,21 @@ private:
|
||||||
|
|
||||||
void run()
|
void run()
|
||||||
{
|
{
|
||||||
|
TEST_CASE(instancesSorted);
|
||||||
TEST_CASE(getErrorMessages);
|
TEST_CASE(getErrorMessages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void instancesSorted()
|
||||||
|
{
|
||||||
|
for (std::list<Check *>::iterator i = Check::instances().begin(); i != Check::instances().end(); ++i) {
|
||||||
|
std::list<Check *>::iterator j = i;
|
||||||
|
++j;
|
||||||
|
if (j != Check::instances().end()) {
|
||||||
|
ASSERT_EQUALS(true, (*i)->name() < (*j)->name());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void getErrorMessages()
|
void getErrorMessages()
|
||||||
{
|
{
|
||||||
ErrorLogger2 errorLogger;
|
ErrorLogger2 errorLogger;
|
||||||
|
|
Loading…
Reference in New Issue