8 lines
144 B
Python
8 lines
144 B
Python
|
# Adapted from the test_sample.py example in the pytest documentation
|
||
|
|
||
|
def inc(x):
|
||
|
return x + 1
|
||
|
|
||
|
def test_answer():
|
||
|
assert inc(3) == 4
|