()
| 1104 | |
| 1105 | |
| 1106 | def test_cast_integer_array_to_features(): |
| 1107 | arr = pa.array([[0, 1]]) |
| 1108 | assert cast_array_to_feature(arr, List(Value("string"))).type == pa.list_(pa.string()) |
| 1109 | assert cast_array_to_feature(arr, List(Value("string")), allow_decimal_to_str=False).type == pa.list_(pa.string()) |
| 1110 | with pytest.raises(TypeError): |
| 1111 | cast_array_to_feature(arr, List(Value("string")), allow_primitive_to_str=False) |
| 1112 | |
| 1113 | |
| 1114 | def test_cast_float_array_to_features(): |
nothing calls this directly
no test coverage detected