trace_commentor/tests/test_literals.py
Yuyao Huang 49651168e3 If()
2024-04-20 02:01:26 +08:00

31 lines
415 B
Python

from test_utils import *
def test_constant():
@Commentor("<return>")
def target():
1
asserteq_or_print(target(), '''
def target():
1
''')
def test_tuple():
@Commentor("<return>")
def target():
a, b = 1, 2
asserteq_or_print(target(), '''
def target():
a, b = 1, 2
"""
----------
1 : a
2 : b
"""
''')