From 1b96cec8f270de5e3d0aee1a77c93b0e790bda1d Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 28 Dec 2010 13:31:22 +0000 Subject: [PATCH] Fixed bug with listing test cases --- internal/catch_list.hpp | 4 ++-- internal/catch_registry.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/catch_list.hpp b/internal/catch_list.hpp index a0c53715..476f45fe 100644 --- a/internal/catch_list.hpp +++ b/internal/catch_list.hpp @@ -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; } diff --git a/internal/catch_registry.hpp b/internal/catch_registry.hpp index 64e91322..9325e4eb 100644 --- a/internal/catch_registry.hpp +++ b/internal/catch_registry.hpp @@ -42,7 +42,7 @@ public: } } - std::vector getAllTests() const + const std::vector& getAllTests() const { return m_functionsInOrder; }