(value, expected)
| 772 | ], |
| 773 | ) |
| 774 | def test_bool_field_coercion(value, expected): |
| 775 | fory = Fory(xlang=False, ref=True, strict=False, compatible=False) |
| 776 | result = ser_de(fory, BoolCoercionObject(value)) |
| 777 | assert result.b is expected |
| 778 | |
| 779 | |
| 780 | def test_bool_field_coercion_numpy_bool(): |
nothing calls this directly
no test coverage detected