(pack_func, **kwargs)
| 398 | |
| 399 | |
| 400 | def check_pack_float(pack_func, **kwargs): |
| 401 | assert b"\xca" + struct.pack(">f", 1.0) == pack_func(1.0, use_single_float=True) |
| 402 | assert b"\xcb" + struct.pack(">d", 1.0) == pack_func(1.0, use_single_float=False) |
| 403 | |
| 404 | |
| 405 | def check_odict(pack_func, unpack_func): |