mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-21 06:45:49 -07:00
12 lines
409 B
Python
12 lines
409 B
Python
import orjson
|
|
import unittest
|
|
from NetUtils import encode, decode
|
|
|
|
|
|
class TestSerialize(unittest.TestCase):
|
|
def test_unbounded_int(self) -> None:
|
|
big_number = 2**200
|
|
round_tripped_big_number = decode(encode(orjson.Fragment(str(big_number).encode())))
|
|
self.assertEqual(big_number, round_tripped_big_number)
|
|
self.assertEqual(type(big_number), type(round_tripped_big_number))
|