PATH: //opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/core/tests
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 _locales.py
↓
X
📁 data/
X
📁 examples/
X
📄 test__exceptions.py
↓
X
📄 test_abc.py
↓
X
📄 test_api.py
↓
X
📄 test_argparse.py
↓
X
📄 test_array_coercion.py
↓
X
📄 test_array_interface.py
↓
X
📄 test_arraymethod.py
↓
X
📄 test_arrayprint.py
↓
X
📄 test_casting_floatingpoint_errors.py
↓
X
📄 test_casting_unittests.py
↓
X
📄 test_conversion_utils.py
↓
X
📄 test_cpu_dispatcher.py
↓
X
📄 test_cpu_features.py
↓
X
📄 test_custom_dtypes.py
↓
X
📄 test_cython.py
↓
X
📄 test_datetime.py
↓
X
📄 test_defchararray.py
↓
X
📄 test_deprecations.py
↓
X
📄 test_dlpack.py
↓
X
📄 test_dtype.py
↓
X
📄 test_einsum.py
↓
X
📄 test_errstate.py
↓
X
📄 test_extint128.py
↓
X
📄 test_function_base.py
↓
X
📄 test_getlimits.py
↓
X
📄 test_half.py
↓
X
📄 test_hashtable.py
↓
X
📄 test_indexerrors.py
↓
X
📄 test_indexing.py
↓
X
📄 test_item_selection.py
↓
X
📄 test_limited_api.py
↓
X
📄 test_longdouble.py
↓
X
📄 test_machar.py
↓
X
📄 test_mem_overlap.py
↓
X
📄 test_mem_policy.py
↓
X
📄 test_memmap.py
↓
X
📄 test_multiarray.py
↓
X
📄 test_nditer.py
↓
X
📄 test_nep50_promotions.py
↓
X
📄 test_numeric.py
↓
X
📄 test_numerictypes.py
↓
X
📄 test_overrides.py
↓
X
📄 test_print.py
↓
X
📄 test_protocols.py
↓
X
📄 test_records.py
↓
X
📄 test_regression.py
↓
X
📄 test_scalar_ctors.py
↓
X
📄 test_scalar_methods.py
↓
X
📄 test_scalarbuffer.py
↓
X
📄 test_scalarinherit.py
↓
X
📄 test_scalarmath.py
↓
X
📄 test_scalarprint.py
↓
X
📄 test_shape_base.py
↓
X
📄 test_simd.py
↓
X
📄 test_simd_module.py
↓
X
📄 test_strings.py
↓
X
📄 test_ufunc.py
↓
X
📄 test_umath.py
↓
X
📄 test_umath_accuracy.py
↓
X
📄 test_umath_complex.py
↓
X
📄 test_unicode.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: test_abc.py
from numpy.testing import assert_ import numbers import numpy as np from numpy.core.numerictypes import sctypes class TestABC: def test_abstract(self): assert_(issubclass(np.number, numbers.Number)) assert_(issubclass(np.inexact, numbers.Complex)) assert_(issubclass(np.complexfloating, numbers.Complex)) assert_(issubclass(np.floating, numbers.Real)) assert_(issubclass(np.integer, numbers.Integral)) assert_(issubclass(np.signedinteger, numbers.Integral)) assert_(issubclass(np.unsignedinteger, numbers.Integral)) def test_floats(self): for t in sctypes['float']: assert_(isinstance(t(), numbers.Real), f"{t.__name__} is not instance of Real") assert_(issubclass(t, numbers.Real), f"{t.__name__} is not subclass of Real") assert_(not isinstance(t(), numbers.Rational), f"{t.__name__} is instance of Rational") assert_(not issubclass(t, numbers.Rational), f"{t.__name__} is subclass of Rational") def test_complex(self): for t in sctypes['complex']: assert_(isinstance(t(), numbers.Complex), f"{t.__name__} is not instance of Complex") assert_(issubclass(t, numbers.Complex), f"{t.__name__} is not subclass of Complex") assert_(not isinstance(t(), numbers.Real), f"{t.__name__} is instance of Real") assert_(not issubclass(t, numbers.Real), f"{t.__name__} is subclass of Real") def test_int(self): for t in sctypes['int']: assert_(isinstance(t(), numbers.Integral), f"{t.__name__} is not instance of Integral") assert_(issubclass(t, numbers.Integral), f"{t.__name__} is not subclass of Integral") def test_uint(self): for t in sctypes['uint']: assert_(isinstance(t(), numbers.Integral), f"{t.__name__} is not instance of Integral") assert_(issubclass(t, numbers.Integral), f"{t.__name__} is not subclass of Integral")
SIMPAN PERUBAHAN