()
| 1112 | |
| 1113 | |
| 1114 | def test_cast_float_array_to_features(): |
| 1115 | arr = pa.array([[0.0, 1.0]]) |
| 1116 | assert cast_array_to_feature(arr, List(Value("string"))).type == pa.list_(pa.string()) |
| 1117 | assert cast_array_to_feature(arr, List(Value("string")), allow_decimal_to_str=False).type == pa.list_(pa.string()) |
| 1118 | with pytest.raises(TypeError): |
| 1119 | cast_array_to_feature(arr, List(Value("string")), allow_primitive_to_str=False) |
| 1120 | |
| 1121 | |
| 1122 | def test_cast_boolean_array_to_features(): |
nothing calls this directly
no test coverage detected