summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2020-03-28 13:33:58 -0500
committerDamien George <damien.p.george@gmail.com>2020-03-30 13:23:05 +1100
commit6110cd30780c1b539bf9a67352962bf026b6a2ce (patch)
tree6a03407812dc038da692ffd803c6e82516ef24fc
parent3dc324d3f1312e40d3a8ed87e7244966bb756f26 (diff)
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.
-rw-r--r--tests/float/lexer.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/float/lexer.py b/tests/float/lexer.py
new file mode 100644
index 000000000..a4b1941ee
--- /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