Add trailing zero between dot and exponential (#7956)

Closes https://github.com/astral-sh/ruff/issues/7952.
This commit is contained in:
Charlie Marsh 2023-10-15 21:42:00 -04:00 committed by GitHub
parent 3d03e75a9d
commit aa6846c78c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 5 deletions

View file

@ -0,0 +1,28 @@
---
source: crates/ruff_python_formatter/tests/fixtures.rs
input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/number.py
---
## Input
```py
.1
1.
1E+1
1E-1
1.E+1
1.0E+1
1.1E+1
```
## Output
```py
0.1
1.0
1e1
1e-1
1.0e1
1.0e1
1.1e1
```