diff --git a/tests/test_program.py b/tests/test_program.py index 0a46b346b..c0e5429e3 100644 --- a/tests/test_program.py +++ b/tests/test_program.py @@ -23,3 +23,14 @@ def test_raise_program() -> None: assert False except ValueError as e: assert f"{e}" == "('clvm raise', '86666f6f626172')" + + +def test_repr() -> None: + temp = Program.to([8, (1, "foo")]) + assert f"{temp}" == "Program(ff08ffff0183666f6f80)" + + try: + run_chia_program(bytes(temp), bytes.fromhex("00"), 1100000000, 0) + assert False + except ValueError as e: + assert f"{e}" == "('clvm raise', '83666f6f')"