Skip to content

Commit 6aa8398

Browse files
committed
test: add exponent tests
1 parent 6c03279 commit 6aa8398

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pandas/tests/io/parser/common/test_float.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,22 @@ def test_too_many_exponent_digits(all_parsers_all_precisions, exp, request):
8383
"value, expected_value",
8484
[
8585
("32.0", 32.0),
86+
("3.2e1", 32.0),
87+
("3.2e80", 3.2e80),
88+
("3.2e-80", 3.2e-80),
8689
("18446744073709551616.0", float(1 << 64)),
8790
("18446744073709551616.5", (1 << 64) + 0.5),
8891
("36893488147419103232.3", (1 << 65) + 0.3),
8992
],
90-
ids=["small_float", "2pow64_float", "2pow64_plus_half", "2pow65_plus_third"],
93+
ids=[
94+
"small_float",
95+
"small_float_exponent",
96+
"big_exponent",
97+
"small_exponent",
98+
"2pow64_float",
99+
"2pow64_plus_half",
100+
"2pow65_plus_third",
101+
],
91102
)
92103
def test_small_int_followed_by_float(
93104
all_parsers_all_precisions, value, expected_value, request

0 commit comments

Comments
 (0)