Skip to content

Commit dcb4244

Browse files
committed
Added unit test cases
1 parent 73b7bee commit dcb4244

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pandas/tests/tseries/offsets/test_offsets.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,14 @@ def test_dateoffset_add_sub_timestamp_series_with_nano(offset, expected):
10801080

10811081
@pytest.mark.parametrize(
10821082
"n_months, scaling_factor, start_timestamp, expected_timestamp",
1083-
[(1, 2, "2020-01-30", "2020-03-30"), (2, 1, "2020-01-30", "2020-03-30")],
1083+
[
1084+
(1, 2, "2020-01-30", "2020-03-30"),
1085+
(2, 1, "2020-01-30", "2020-03-30"),
1086+
(1, 0, "2020-01-30", "2020-01-30"),
1087+
(2, 0, "2020-01-30", "2020-01-30"),
1088+
(1, -1, "2020-01-30", "2019-12-30"),
1089+
(2, -1, "2020-01-30", "2019-11-30"),
1090+
],
10841091
)
10851092
def test_offset_multiplication(
10861093
n_months, scaling_factor, start_timestamp, expected_timestamp

0 commit comments

Comments
 (0)