Skip to content

Commit c14946d

Browse files
Completed addition function (#38)
1 parent 8176a13 commit c14946d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

ash/__init__.py

Whitespace-only changes.

ash/test_addition.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def add(a, b):
2+
"""Add a and b"""
3+
return a + b
4+
5+
6+
def test_add():
7+
assert add(1, 1) == 2
8+
assert add(0, 0) == 0
9+
assert add(1, -1) == 0

0 commit comments

Comments
 (0)