X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/728c56c986bc5aea4d9897d3fce3159f89991b8e..c55d08d0b96c8de8bd867ca315e380d9e9d2d7ec:/tests/test_black.py diff --git a/tests/test_black.py b/tests/test_black.py index 759bda5..9d7f579 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -150,6 +150,14 @@ class BlackTestCase(unittest.TestCase): black.assert_equivalent(source, actual) black.assert_stable(source, actual, line_length=ll) + @patch("black.dump_to_file", dump_to_stderr) + def test_comments3(self) -> None: + source, expected = read_data('comments3') + actual = fs(source) + self.assertFormatEqual(expected, actual) + black.assert_equivalent(source, actual) + black.assert_stable(source, actual, line_length=ll) + @patch("black.dump_to_file", dump_to_stderr) def test_cantfit(self) -> None: source, expected = read_data('cantfit')