Skip to content

Commit a4ef563

Browse files
committed
add round test
1 parent 1125199 commit a4ef563

File tree

1 file changed

+6
-0
lines changed
  • pandas/tests/extension/base

1 file changed

+6
-0
lines changed

pandas/tests/extension/base/ops.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,9 @@ def test_unary_ufunc_dunder_equivalence(self, data, ufunc):
263263
else:
264264
alt = ufunc(data)
265265
tm.assert_extension_array_equal(result, alt)
266+
267+
class BaseRoundingTests:
268+
def test_round(self, data):
269+
result = pd.Series(data).round()
270+
expected = pd.Series([np.round(item) for item in data], dtype = self.dtype)
271+
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)