class TestCasting:
Undocumented
Method | get_data |
Undocumented |
Method | get_data_variation |
Returns a copy of arr1 that may be non-contiguous or unaligned, and a matching array for arr2 (although not a copy). |
Method | string_with_modified_length |
Undocumented |
Method | test_nonstandard_bool_to_other |
Undocumented |
Method | test_numeric_to_times |
Undocumented |
Method | test_object_and_simple_resolution |
Undocumented |
Method | test_object_casts_NULL_None_equivalence |
Undocumented |
Method | test_object_to_parametric_internal_error |
Undocumented |
Method | test_simple_cancast |
Undocumented |
Method | test_simple_direct_casts |
No summary |
Method | test_simple_string_casts_roundtrip |
Tests casts from and to string by checking the roundtripping property. |
Method | test_simple_to_object_resolution |
Undocumented |
Method | test_string_cancast |
Undocumented |
Method | test_string_to_string_cancast |
Undocumented |
Method | test_time_to_time |
Undocumented |
Method | test_unicode_byteswapped_cast |
Undocumented |
Method | test_void_and_structured_with_subarray |
Undocumented |
Method | test_void_to_string_special_case |
Undocumented |
Class Variable | size |
Undocumented |
Undocumented
Undocumented
Undocumented
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).
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).
Undocumented
Undocumented
Undocumented
Undocumented
Undocumented