diff --git a/tests/unit/unittest/clangformat-test.cpp b/tests/unit/unittest/clangformat-test.cpp index 2ce3eba24ab..b6312866927 100644 --- a/tests/unit/unittest/clangformat-test.cpp +++ b/tests/unit/unittest/clangformat-test.cpp @@ -957,6 +957,28 @@ TEST_F(ClangFormat, ChainedMemberFunctionCalls) " .func();")); } +TEST_F(ClangFormat, DISABLED_CommentBlock) +{ + insertLines({"/****************************************************************************", + "**", + "** Copyright (C) 2021 The Qt Company Ltd.", + "** Contact: https://www.qt.io/licensing/", + "**", + "** This file is part of Qt Creator.", + "**", + "****************************************************************************/"}); + indenter.indent(cursor, QChar::Null, TextEditor::TabSettings()); + ASSERT_THAT(documentLines(), ElementsAre( + "/****************************************************************************", + "**", + "** Copyright (C) 2021 The Qt Company Ltd.", + "** Contact: https://www.qt.io/licensing/", + "**", + "** This file is part of Qt Creator.", + "**", + "****************************************************************************/")); +} + // clang-format on } // namespace