fix tests

This commit is contained in:
blueloveTH 2024-05-13 23:44:24 +08:00
parent d3fd70a98d
commit 5b3231951f
2 changed files with 6 additions and 4 deletions

View File

@ -64,10 +64,9 @@ class A:
def get(self):
return self.x
print('ans_1:', add(1, 2))
print('ans_2:', A('abc').get())
exit()
print('ans_1:', add(1, 2))
print('ans_2:', A('abc').get())
exit()
''', capture_output=True, check=True)
res.check_returncode()
assert 'ans_1: 3' in res.stdout, res.stdout

View File

@ -101,3 +101,6 @@ assert ret == {chr(i+97): i+1 for i in range(26)}
assert g(**ret) == ret
assert g(**g(**ret)) == ret
# other known issues:
# 1. d.extend(d) if d is deque