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.
This commit is contained in:
David Lechner 2020-03-28 13:33:58 -05:00 committed by Damien George
parent 3dc324d3f1
commit 6110cd3078
1 changed files with 6 additions and 0 deletions

6
tests/float/lexer.py Normal file
View File

@ -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