Skip to content

show_successful_tests leads to missing newline before suite summary #690

@WardBrian

Description

@WardBrian

Simple example:

#include <boost/ut.hpp>
using namespace boost::ut;

suite<"basic suite"> tests = [] {
  "test 1"_test = [] {
    expect(true);
    };
};

int main(int argc, const char* argv[]) {
  boost::ut::detail::cfg::show_successful_tests = true;
}

This prints:

Running test "test 1"... PASSEDSuite 'basic suite': all tests passed (1 asserts in 1 tests)
Suite 'global': all tests passed (0 asserts in 0 tests)

I would have expected something like

Running test "test 1"... PASSED
Suite 'basic suite': all tests passed (1 asserts in 1 tests)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions