mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-24 21:40:16 +00:00
fix tests
This commit is contained in:
parent
d3fd70a98d
commit
5b3231951f
@ -64,10 +64,9 @@ class A:
|
|||||||
def get(self):
|
def get(self):
|
||||||
return self.x
|
return self.x
|
||||||
|
|
||||||
|
print('ans_1:', add(1, 2))
|
||||||
print('ans_1:', add(1, 2))
|
print('ans_2:', A('abc').get())
|
||||||
print('ans_2:', A('abc').get())
|
exit()
|
||||||
exit()
|
|
||||||
''', capture_output=True, check=True)
|
''', capture_output=True, check=True)
|
||||||
res.check_returncode()
|
res.check_returncode()
|
||||||
assert 'ans_1: 3' in res.stdout, res.stdout
|
assert 'ans_1: 3' in res.stdout, res.stdout
|
||||||
|
|||||||
@ -101,3 +101,6 @@ assert ret == {chr(i+97): i+1 for i in range(26)}
|
|||||||
|
|
||||||
assert g(**ret) == ret
|
assert g(**ret) == ret
|
||||||
assert g(**g(**ret)) == ret
|
assert g(**g(**ret)) == ret
|
||||||
|
|
||||||
|
# other known issues:
|
||||||
|
# 1. d.extend(d) if d is deque
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user