X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/fc869039ebcc0c0ff922ea9b2713480c119e5341..2ad642754b531d4fd42829966e84ee0ac435257e:/tests/test_black.py diff --git a/tests/test_black.py b/tests/test_black.py index 759bda5..1c22e54 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -150,6 +150,22 @@ 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_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')