trace_commentor/tests/test_literals.py
Yuyao Huang 29c08c08e4 Tuple
2024-04-19 19:09:06 +08:00

31 lines
413 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
"""
''')