Compare()

This commit is contained in:
Yuyao Huang
2024-04-19 19:16:47 +08:00
parent 29c08c08e4
commit 245a927382
4 changed files with 27 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
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)
"""
''')