Fixed bug with listing test cases

This commit is contained in:
Phil Nash 2010-12-28 13:31:22 +00:00
parent 01f3dfffbc
commit 1b96cec8f2
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ namespace Catch
for(; it != itEnd; ++it )
{
// !TBD: consider listAs()
std::cout << "\t" << it->first << " '" << it->second->getDescription() << "'\n";
std::cout << "\t" << it->first << "\n\t\t'" << it->second->getDescription() << "'\n";
}
std::cout << std::endl;
}
@ -40,7 +40,7 @@ namespace Catch
for(; it != itEnd; ++it )
{
// !TBD: consider listAs()
std::cout << "\t" << it->getName() << " '" << it->getDescription() << "'\n";
std::cout << "\t" << it->getName() << "\n\t\t '" << it->getDescription() << "'\n";
}
std::cout << std::endl;
}

View File

@ -42,7 +42,7 @@ public:
}
}
std::vector<TestCaseInfo> getAllTests() const
const std::vector<TestCaseInfo>& getAllTests() const
{
return m_functionsInOrder;
}