trace_commentor/tests/test_conditions.py
2024-04-19 19:16:47 +08:00

20 lines
301 B
Python

from test_utils import *
def test_constant():
@Commentor("<return>")
def target():
x = 2
print(x == 2)
asserteq_or_print(target(), '''
def target():
x = 2
print(x == 2)
"""
True : x == 2
None : print(x == 2)
"""
''')