class TestCasting: (source)
Undocumented
Method | get |
Undocumented |
Method | get |
Returns a copy of arr1 that may be non-contiguous or unaligned, and a matching array for arr2 (although not a copy). |
Method | string |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test_object_casts_ |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
This test checks numeric direct casts for dtypes supported also by the struct module (plus complex). It tries to be test a wide range of inputs, but skips over possibly undefined behaviour (e.g. int rollover)... |
Method | test |
Tests casts from and to string by checking the roundtripping property. |
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 |
Class Variable | size |
Undocumented |
Returns a copy of arr1 that may be non-contiguous or unaligned, and a matching array for arr2 (although not a copy).
def test_nonstandard_bool_to_other(self, dtype): (source) ¶
Undocumented
def test_numeric_to_times(self, from_Dt): (source) ¶
Undocumented
def test_object_and_simple_resolution(self, dtype): (source) ¶
Undocumented
def test_object_casts_NULL_None_equivalence(self, dtype): (source) ¶
Undocumented
def test_simple_cancast(self, from_Dt): (source) ¶
Undocumented
@pytest.mark.parametrize(
def test_simple_direct_casts(self, from_dt): (source) ¶
This test checks numeric direct casts for dtypes supported also by the struct module (plus complex). It tries to be test a wide range of inputs, but skips over possibly undefined behaviour (e.g. int rollover). Longdouble and CLongdouble are tested, but only using double precision.
If this test creates issues, it should possibly just be simplified or even removed (checking whether unaligned/non-contiguous casts give the same results is useful, though).
@pytest.mark.parametrize(
def test_simple_string_casts_roundtrip(self, other_dt, string_char): (source) ¶
Tests casts from and to string by checking the roundtripping property.
The test also covers some string to string casts (but not all).
If this test creates issues, it should possibly just be simplified or even removed (checking whether unaligned/non-contiguous casts give the same results is useful, though).
def test_simple_to_object_resolution(self, dtype): (source) ¶
Undocumented
@pytest.mark.parametrize(
def test_string_cancast(self, other_DT, string_char): (source) ¶
Undocumented
@pytest.mark.parametrize(
def test_string_to_string_cancast(self, other_dt, string_char): (source) ¶
Undocumented
def test_structured_field_offsets(self, to_dt, expected_off): (source) ¶
Undocumented
def test_structured_view_offsets_paramteric(self, from_dt, to_dt, expected_off): (source) ¶
Undocumented
def test_time_to_time(self, from_dt, to_dt, expected_casting, expected_view_off, nom, denom): (source) ¶
Undocumented
@pytest.mark.parametrize(
def test_unicode_byteswapped_cast(self, order1, order2): (source) ¶
Undocumented