Skip to content

Commit 7687831

Browse files
committed
added example with test
1 parent d4cd109 commit 7687831

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

example.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ def add(a, b):
22
return a + b
33

44
def subtract(a, b):
5-
return a + b # do not change this line until prompted to do so.
5+
return a + b # do not change this line until prompted to do so.
6+
7+
def test_add():
8+
assert add(1,2)==3
9+
# assert add(2,3)==0

0 commit comments

Comments
 (0)