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
Small optimization for stringifying chrono::time_point
- Commit
f50a06affa77d4dbe0c94f684b3a6dfae04c2ebe- Author
- Martin Hořeňovský ·
- Parents
4cc247cc700f
Changes
src/catch2/catch_tostring.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/catch2/catch_tostring.hpp b/src/catch2/catch_tostring.hpp index da2758ce..9a450525 100644 --- a/src/catch2/catch_tostring.hpp +++ b/src/catch2/catch_tostring.hpp @@ -625,7 +625,7 @@ struct ratio_string<std::milli> { #else std::strftime(timeStamp, timeStampSize, fmt, timeInfo); #endif - return std::string(timeStamp); + return std::string(timeStamp, timeStampSize - 1); } }; }