We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9faf2 commit 814a09dCopy full SHA for 814a09d
tests/test_encoding.py
@@ -11,6 +11,12 @@
11
from .test_helpers import ENCODING_FACTORIES, MAX_EXAMPLES
12
13
14
+def test_extremely_big_encoding():
15
+ big_value = "^" * 1000000
16
+ enc = tiktoken.get_encoding("r50k_base")
17
+ assert big_value == enc.decode(enc.encode(big_value))
18
+
19
20
def test_simple():
21
enc = tiktoken.get_encoding("gpt2")
22
assert enc.encode("hello world") == [31373, 995]
0 commit comments