class documentation
class TestDivision: (source)
Undocumented
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
@pytest.mark.parametrize( 'dtype,ex_val', itertools.product( np.sctypes[ 'int']+np.sctypes[ 'uint'], ( 'np.array(range(fo.max-lsize, fo.max)).astype(dtype),np.arange(lsize).astype(dtype),range(15)', 'np.arange(fo.min, fo.min+lsize).astype(dtype),np.arange(lsize//-2, lsize//2).astype(dtype),range(fo.min, fo.min + 15)', 'np.array(range(fo.max-lsize, fo.max)).astype(dtype),np.arange(lsize).astype(dtype),[1,3,9,13,neg, fo.min+1, fo.min//2, fo.max//3, fo.max//4]')))
def test_division_int_boundary(self, dtype, ex_val): (source) ¶
@pytest.mark.parametrize(
def test_division_int_boundary(self, dtype, ex_val): (source) ¶
Undocumented
@pytest.mark.skipif( IS_WASM, reason='fp errors don\'t work in wasm')
@pytest.mark.parametrize( 'dtype,ex_val', itertools.product( np.sctypes[ 'int']+np.sctypes[ 'uint'], ( 'np.array([fo.max, 1, 2, 1, 1, 2, 3], dtype=dtype)', 'np.array([fo.min, 1, -2, 1, 1, 2, -3]).astype(dtype)', 'np.arange(fo.min, fo.min+(100*10), 10, dtype=dtype)', 'np.array(range(fo.max-(100*7), fo.max, 7)).astype(dtype)')))
def test_division_int_reduce(self, dtype, ex_val): (source) ¶
@pytest.mark.parametrize(
def test_division_int_reduce(self, dtype, ex_val): (source) ¶
Undocumented
@pytest.mark.parametrize( 'dividend,divisor,quotient', [ ( np.timedelta64( 2, 'Y'), np.timedelta64( 2, 'M'), 12), ( np.timedelta64( 2, 'Y'), np.timedelta64( -2, 'M'), -12), ( np.timedelta64( -2, 'Y'), np.timedelta64( 2, 'M'), -12), ( np.timedelta64( -2, 'Y'), np.timedelta64( -2, 'M'), 12), ( np.timedelta64( 2, 'M'), np.timedelta64( -2, 'Y'), -1), ( np.timedelta64( 2, 'Y'), np.timedelta64( 0, 'M'), 0), ( np.timedelta64( 2, 'Y'), 2, np.timedelta64( 1, 'Y')), ( np.timedelta64( 2, 'Y'), -2, np.timedelta64( -1, 'Y')), ( np.timedelta64( -2, 'Y'), 2, np.timedelta64( -1, 'Y')), ( np.timedelta64( -2, 'Y'), -2, np.timedelta64( 1, 'Y')), ( np.timedelta64( -2, 'Y'), -2, np.timedelta64( 1, 'Y')), ( np.timedelta64( -2, 'Y'), -3, np.timedelta64( 0, 'Y')), ( np.timedelta64( -2, 'Y'), 0, np.timedelta64( 'Nat', 'Y'))])
def test_division_int_timedelta(self, dividend, divisor, quotient): (source) ¶
def test_division_int_timedelta(self, dividend, divisor, quotient): (source) ¶
Undocumented
@pytest.mark.parametrize( 'dtype', np.typecodes[ 'Float'])
def test_floor_division_corner_cases(self, dtype): (source) ¶
def test_floor_division_corner_cases(self, dtype): (source) ¶
Undocumented