module documentation
This file adds basic tests to test the NEP 50 style promotion compatibility mode. Most of these test are likely to be simply deleted again once NEP 50 is adopted in the main test suite. A few may be moved elsewhere.
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | _weak |
Undocumented |
@pytest.mark.skipif( IS_WASM, reason='wasm doesn\'t have support for fp errors')
def test_nep50_examples(): (source) ¶
def test_nep50_examples(): (source) ¶
Undocumented
@pytest.mark.parametrize( 'dtype', np.typecodes[ 'AllInteger'])
def test_nep50_weak_integers(dtype): (source) ¶
def test_nep50_weak_integers(dtype): (source) ¶
Undocumented
@pytest.mark.parametrize( 'dtype', np.typecodes[ 'AllFloat'])
def test_nep50_weak_integers_with_inexact(dtype): (source) ¶
def test_nep50_weak_integers_with_inexact(dtype): (source) ¶
Undocumented
@pytest.mark.parametrize( 'op', [ operator.add, operator.pow, operator.eq])
def test_weak_promotion_scalar_path(op): (source) ¶
def test_weak_promotion_scalar_path(op): (source) ¶
Undocumented