-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add trailing zero between dot and exponential
- Loading branch information
1 parent
ddffadb
commit 29caa90
Showing
3 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/number.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.1 | ||
1. | ||
1E+1 | ||
1E-1 | ||
1.E+1 | ||
1.0E+1 | ||
1.1E+1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
crates/ruff_python_formatter/tests/snapshots/format@expression__number.py.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
``` | ||
|
||
|
||
|