X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/022f89625f9bb33ab55c82c45ec0eb8512623fd3..b92822afeedd45daa3b1d094a502daf936f7fa9d:/tests/test_format.py?ds=inline diff --git a/tests/test_format.py b/tests/test_format.py index 3895a09..88f084e 100644 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -48,9 +48,13 @@ SIMPLE_CASES: List[str] = [ "function2", "function_trailing_comma", "import_spacing", + "power_op_spacing", "remove_parens", "slices", "string_prefixes", + "trailing_comma_optional_parens1", + "trailing_comma_optional_parens2", + "trailing_comma_optional_parens3", "tricky_unicode_symbols", "tupleassign", ] @@ -252,3 +256,9 @@ def test_python38() -> None: def test_python39() -> None: source, expected = read_data("python39") assert_format(source, expected, minimum_version=(3, 9)) + + +def test_power_op_newline() -> None: + # requires line_length=0 + source, expected = read_data("power_op_newline") + assert_format(source, expected, mode=black.Mode(line_length=0))