X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c55d08d0b96c8de8bd867ca315e380d9e9d2d7ec..fa159bb3576b0d8a79eb4a93f13b38c29adbcfa0:/tests/test_black.py diff --git a/tests/test_black.py b/tests/test_black.py index 9d7f579..1c22e54 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -158,6 +158,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_comments4(self) -> None: + source, expected = read_data('comments4') + 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')