Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Microopt: stream single char instead of single char string

Commit
eef6c9b79b43a4f5a902813093266f5a8633eb60
Author
Martin Hořeňovský ·
Parents
b5a287f09fd3

Files · Download .tar.gz

Changes

 src/catch2/internal/catch_decomposer.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/catch2/internal/catch_decomposer.cpp b/src/catch2/internal/catch_decomposer.cpp
index d227c534..e1018cd6 100644
--- a/src/catch2/internal/catch_decomposer.cpp
+++ b/src/catch2/internal/catch_decomposer.cpp
@@ -12,13 +12,13 @@
 namespace Catch {
 
     ITransientExpression::~ITransientExpression() = default;
-    
+
     void formatReconstructedExpression( std::ostream &os, std::string const& lhs, StringRef op, std::string const& rhs ) {
         if( lhs.size() + rhs.size() < 40 &&
                 lhs.find('\n') == std::string::npos &&
                 rhs.find('\n') == std::string::npos )
-            os << lhs << " " << op << " " << rhs;
+            os << lhs << ' ' << op << ' ' << rhs;
         else
-            os << lhs << "\n" << op << "\n" << rhs;
+            os << lhs << '\n' << op << '\n' << rhs;
     }
 }