()
| 84 | |
| 85 | |
| 86 | def test_encode_bytes(): |
| 87 | enc = tiktoken.get_encoding("cl100k_base") |
| 88 | assert enc._encode_bytes(b" \xec\x8b\xa4\xed") == [62085] |
| 89 | for i in range(10): |
| 90 | bytestring = b"\x80" * i |
| 91 | assert enc.decode_bytes(enc._encode_bytes(bytestring)) == bytestring |
| 92 | |
| 93 | |
| 94 | @pytest.mark.parametrize("make_enc", ENCODING_FACTORIES) |
nothing calls this directly
no test coverage detected
searching dependent graphs…