Skip to content

Commit 6110cd3

Browse files
dlechdpgeorge
authored andcommitted
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.
1 parent 3dc324d commit 6110cd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/float/lexer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# since black code formatter does not allow leading decimal point with nothing
2+
# before it, we need to test it explicitly
3+
4+
# fmt: off
5+
print(.1)
6+
# fmt: on

0 commit comments

Comments
 (0)