X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/df965b055808bbfbe32f4f20ac949b364dafc900..ebbb98919d26caa641a6aa4ed6d3beb11a897cf2:/tests/test_black.py?ds=inline diff --git a/tests/test_black.py b/tests/test_black.py index 02bad20..884d046 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -373,6 +373,21 @@ 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_numeric_literals(self) -> None: + source, expected = read_data("numeric_literals") + actual = fs(source, mode=black.FileMode.PYTHON36) + 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_numeric_literals_py2(self) -> None: + source, expected = read_data("numeric_literals_py2") + actual = fs(source) + self.assertFormatEqual(expected, actual) + black.assert_stable(source, actual, line_length=ll) + @patch("black.dump_to_file", dump_to_stderr) def test_python2(self) -> None: source, expected = read_data("python2")