mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
tests: Add tests for things that are not already tested.
The aim here is to improve coverage of the code.
This commit is contained in:
13
tests/basics/return1.py
Normal file
13
tests/basics/return1.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# test return statement
|
||||
|
||||
def f():
|
||||
return
|
||||
print(f())
|
||||
|
||||
def g():
|
||||
return 1
|
||||
print(g())
|
||||
|
||||
def f(x):
|
||||
return 1 if x else 2
|
||||
print(f(0), f(1))
|
||||
Reference in New Issue
Block a user