X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/97c11f22aaf3eacad42d4f78309ffc1f6965e955..80425ca440136002a64e24d6be7c3ba59cc20f9c:/tests/test_black.py?ds=inline diff --git a/tests/test_black.py b/tests/test_black.py index f405558..3c76633 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -501,6 +501,14 @@ class BlackTestCase(unittest.TestCase): black.assert_equivalent(source, actual) black.assert_stable(source, actual, black.FileMode()) + @patch("black.dump_to_file", dump_to_stderr) + def test_percent_precedence(self) -> None: + source, expected = read_data("percent_precedence") + actual = fs(source) + self.assertFormatEqual(expected, actual) + black.assert_equivalent(source, actual) + black.assert_stable(source, actual, black.FileMode()) + @patch("black.dump_to_file", dump_to_stderr) def test_comments(self) -> None: source, expected = read_data("comments")