From 6110cd30780c1b539bf9a67352962bf026b6a2ce Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sat, 28 Mar 2020 13:33:58 -0500 Subject: [PATCH] tests/float: Add new lexer test to test parsing of float without prefix. Since automatically formatting tests with black, we have lost one line of code coverage. This adds an explicit test to ensure we are testing the case that is no longer covered implicitly. --- tests/float/lexer.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/float/lexer.py diff --git a/tests/float/lexer.py b/tests/float/lexer.py new file mode 100644 index 0000000000..a4b1941eea --- /dev/null +++ b/tests/float/lexer.py @@ -0,0 +1,6 @@ +# since black code formatter does not allow leading decimal point with nothing +# before it, we need to test it explicitly + +# fmt: off +print(.1) +# fmt: on