diff options
author | Damien George <damien.p.george@gmail.com> | 2015-09-07 17:33:44 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-09-07 17:33:44 +0100 |
commit | 2b000474d9350ede1c1aedb83ba8976d81ba4cf8 (patch) | |
tree | 2e5c52a1360198dec4c4c80df0aa158e806176e3 /tests/float/float1.py | |
parent | 0be3c70cd88da39ee4dcc328ba3bde1e5abcd406 (diff) | |
download | micropython-2b000474d9350ede1c1aedb83ba8976d81ba4cf8.tar.gz micropython-2b000474d9350ede1c1aedb83ba8976d81ba4cf8.zip |
py/lexer: Properly classify floats that look like hex numbers.
Eg 0e0 almost looks like a hex number but in fact is a float.
Diffstat (limited to 'tests/float/float1.py')
-rw-r--r-- | tests/float/float1.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/float/float1.py b/tests/float/float1.py index 935375c476..27fe26205b 100644 --- a/tests/float/float1.py +++ b/tests/float/float1.py @@ -4,6 +4,9 @@ print(.12) print(1.) print(1.2) +print(0e0) +print(0e+0) +print(0e-0) # float construction print(float(1.2)) |