Skip to content

Commit 3bb4511

Browse files
committed
Fixed minor bug with spacing for output when using performance testing.
1 parent 4993480 commit 3bb4511

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/TestClass.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ class TestClass
836836
{
837837
diff_time /= static_cast<size_t>(m_timed_function_calls);
838838
privateAppendTime(msg, diff_time, false);
839+
msg.Append(" ");
839840
}
840841
else
841842
msg.Append("?"); // Too fast too get accurate timing.
@@ -846,14 +847,14 @@ class TestClass
846847
// Log the part that follows the function name.
847848
void privateLogNumberOfRunTests()
848849
{
849-
char const* str_test = "TEST ";
850-
char const* str_tests = "TESTS ";
851-
char const* str_failed = "FAILED";
850+
char const* str_test = " TEST ";
851+
char const* str_tests = " TESTS ";
852+
char const* str_failed = " FAILED";
852853
char const* str_no_tests = "* NO TESTS *";
853854

854855
TestString::size_type const max_chars =
855856
Max(max_digits + TestStringUtility::UnsafeLength(str_test) + 1,
856-
TestStringUtility::UnsafeLength(str_test)) + 1;
857+
TestStringUtility::UnsafeLength(str_test));
857858

858859
// Build up the string with number of tests or failed tests, then appended message.
859860
TestString whole_str;

0 commit comments

Comments
 (0)