Skip to content

Commit a25f6f6

Browse files
Merge pull request #39 from codersforcauses/i10-add_addition_function_logic
Completed addition functionality
2 parents c14946d + 8fe5136 commit a25f6f6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dominictdavies/__init__.py

Whitespace-only changes.

dominictdavies/test_addition.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
def add(a, b):
2+
return a + b
3+
4+
5+
def test_add():
6+
assert add(1, 1) == 2
7+
assert add(0, 0) == 0
8+
assert add(1, -1) == 0

0 commit comments

Comments
 (0)