Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 0f2c5d6

Browse files
authored
Add expectedFailure test for Series([np.nan]).min(skipna=False) (#554)
1 parent 7abdf3c commit 0f2c5d6

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

sdc/tests/test_series.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2505,6 +2505,24 @@ def test_impl(S, param_skipna):
25052505
result = hpat_func(S, param_skipna)
25062506
self.assertEqual(result, result_ref)
25072507

2508+
@unittest.expectedFailure
2509+
def test_series_min_param_fail(self):
2510+
def test_impl(S, param_skipna):
2511+
return S.min(skipna=param_skipna)
2512+
2513+
hpat_func = self.jit(test_impl)
2514+
2515+
cases = [
2516+
([2., 3., 1, np.inf, -1000, np.nan], False), # min == np.nan
2517+
]
2518+
2519+
for input_data, param_skipna in cases:
2520+
S = pd.Series(input_data)
2521+
2522+
result_ref = test_impl(S, param_skipna)
2523+
result = hpat_func(S, param_skipna)
2524+
self.assertEqual(result, result_ref)
2525+
25082526
def test_series_max(self):
25092527
def test_impl(S):
25102528
return S.max()

0 commit comments

Comments
 (0)