Skip to content

Commit

Permalink
use more informatic print's in test_return.py
Browse files Browse the repository at this point in the history
  • Loading branch information
leasunhy committed Mar 5, 2017
1 parent 196ee69 commit 8c46f97
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/structures/test_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ def test_return_methods(self):
# Empty return
self.assertCodeExecution("""
def m():
print('haha')
print('before return')
return
print('haha')
print('after return')
print(m())
""")

# Single return
self.assertCodeExecution("""
def m():
print('haha')
print('before return')
return 1
print('haha')
print('after return')
print(m() + 1)
""")

# Multiple return
self.assertCodeExecution("""
def m():
print('haha')
print('before return')
return 1, 2
print('haha')
print('after return')
print(m())
""")

0 comments on commit 8c46f97

Please sign in to comment.