From 18d597cf10b593de2853199b152f6a8a7a041293 Mon Sep 17 00:00:00 2001 From: Benjamin Worpitz Date: Sat, 17 Aug 2019 11:48:42 +0200 Subject: [PATCH] Allow to use non-copyable and non-movable types in TEMPLATE_LIST_TEST_CASE The parameter given to `convert` may not be copyable therefore it has to be captured by const reference. For example an `std::tuple` that contains a non-copyable type is itself non-copyable. The NonDefaultConstructible test-case was reduced by one example type because it did not add any value. --- include/internal/catch_preprocessor.hpp | 2 +- .../Baselines/compact.sw.approved.txt | 1 + .../Baselines/console.std.approved.txt | 4 +- .../Baselines/console.sw.approved.txt | 40 ++++++++++++------- .../SelfTest/Baselines/junit.sw.approved.txt | 5 ++- .../SelfTest/Baselines/xml.sw.approved.txt | 37 +++++++++++------ projects/SelfTest/UsageTests/Misc.tests.cpp | 17 +++++++- 7 files changed, 73 insertions(+), 33 deletions(-) diff --git a/include/internal/catch_preprocessor.hpp b/include/internal/catch_preprocessor.hpp index bd66db16..8d7bbe92 100644 --- a/include/internal/catch_preprocessor.hpp +++ b/include/internal/catch_preprocessor.hpp @@ -118,7 +118,7 @@ template