Skip to content

Commit

Permalink
fix ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian-J-S committed Apr 3, 2024
1 parent f973038 commit a375226
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions py-polars/tests/unit/datatypes/test_decimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,22 @@ class Y:
("0.0100", False, "0.0100"),
("0.010000000000000000000000000", False, "0.010000000000000000000000000"),
("-1.123801239123981293891283123", True, "-1.123801239123981293891283123"),
("12345678901.234567890123458390192857685", True, "12345678901.234567890123458390192857685"),
("-99999999999.999999999999999999999999999", True, "-99999999999.999999999999999999999999999"),
(
"12345678901.234567890123458390192857685",
True,
"12345678901.234567890123458390192857685",
),
(
"-99999999999.999999999999999999999999999",
True,
"-99999999999.999999999999999999999999999",
),
],
)
def test_decimal_format(input: str, trim_zeros: bool, expected: str) -> None:
with pl.Config(trim_decimal_zeros=trim_zeros):
series = pl.Series([input]).str.to_decimal()
formatted = str(series).split('\n')[-2].strip()
formatted = str(series).split("\n")[-2].strip()
assert formatted == expected


Expand Down

0 comments on commit a375226

Please sign in to comment.