Skip to content

Commit fd08f34

Browse files
committed
add example.py (step 2)
1 parent 490055b commit fd08f34

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

example.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
def add(a, b):
2+
return a + b
3+
4+
5+
def test_add():
6+
assert add(2, 3) == 5
7+
assert add('space', 'ship') == 'spaceship'
8+
9+
10+
def subtract(a, b):
11+
return a + b # <--- fix this in step 8
12+
13+
14+
# uncomment the following test in step 5
15+
#def test_subtract():
16+
# assert subtract(2, 3) == -1

0 commit comments

Comments
 (0)