Skip to content

Commit 26e3fba

Browse files
committed
Fix tests
1 parent ab020ba commit 26e3fba

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

clang-tools-extra/clang-tidy/tool/check_alphabetical_order_test.py

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -324,32 +324,33 @@ def test_release_notes_handles_nested_sub_bullets(self) -> None:
324324

325325
out = _mod.normalize_release_notes(rn_text.splitlines(True))
326326

327-
expected_out = "".join(
328-
[
329-
"Changes in existing checks\n",
330-
"^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
331-
"\n",
332-
"- Improved :doc:`bugprone-easily-swappable-parameters\n",
333-
" <clang-tidy/checks/bugprone/easily-swappable-parameters>` check by\n",
334-
" correcting a spelling mistake on its option\n",
335-
" ``NamePrefixSuffixSilenceDissimilarityTreshold``.\n",
336-
"\n",
337-
"- Improved :doc:`bugprone-exception-escape\n",
338-
" <clang-tidy/checks/bugprone/exception-escape>` check's handling of lambdas:\n",
339-
" exceptions from captures are now diagnosed, exceptions in the bodies of\n",
340-
" lambdas that aren't actually invoked are not.\n",
341-
"\n",
342-
"- Improved :doc:`llvm-prefer-isa-or-dyn-cast-in-conditionals\n",
343-
" <clang-tidy/checks/llvm/prefer-isa-or-dyn-cast-in-conditionals>` check:\n",
344-
"\n",
345-
" - Fix-it handles callees with nested-name-specifier correctly.\n",
346-
"\n",
347-
" - ``if`` statements with init-statement (``if (auto X = ...; ...)``) are\n",
348-
" handled correctly.\n",
349-
"\n",
350-
" - ``for`` loops are supported.\n",
351-
"\n\n",
352-
]
327+
expected_out = textwrap.dedent(
328+
"""\
329+
Changes in existing checks
330+
^^^^^^^^^^^^^^^^^^^^^^^^^^
331+
332+
- Improved :doc:`bugprone-easily-swappable-parameters
333+
<clang-tidy/checks/bugprone/easily-swappable-parameters>` check by
334+
correcting a spelling mistake on its option
335+
``NamePrefixSuffixSilenceDissimilarityTreshold``.
336+
337+
- Improved :doc:`bugprone-exception-escape
338+
<clang-tidy/checks/bugprone/exception-escape>` check's handling of lambdas:
339+
exceptions from captures are now diagnosed, exceptions in the bodies of
340+
lambdas that aren't actually invoked are not.
341+
342+
- Improved :doc:`llvm-prefer-isa-or-dyn-cast-in-conditionals
343+
<clang-tidy/checks/llvm/prefer-isa-or-dyn-cast-in-conditionals>` check:
344+
345+
- Fix-it handles callees with nested-name-specifier correctly.
346+
347+
- ``if`` statements with init-statement (``if (auto X = ...; ...)``) are
348+
handled correctly.
349+
350+
- ``for`` loops are supported.
351+
352+
353+
"""
353354
)
354355
self.assertEqual(out, expected_out)
355356

0 commit comments

Comments
 (0)