(make_enc: Callable[[], tiktoken.Encoding], bytestring: bytes)
| 95 | @hypothesis.given(bytestring=st.binary()) |
| 96 | @hypothesis.settings(deadline=None, max_examples=MAX_EXAMPLES) |
| 97 | def test_hyp_encode_bytes(make_enc: Callable[[], tiktoken.Encoding], bytestring: bytes): |
| 98 | enc = make_enc() |
| 99 | assert enc.decode_bytes(enc._encode_bytes(bytestring)) == bytestring |
| 100 | |
| 101 | |
| 102 | def test_encode_surrogate_pairs(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…