Skip to content

added add function #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added brendan/__init__.py
Empty file.
9 changes: 9 additions & 0 deletions brendan/test_addition.py

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps these changes belong in a separate PR?

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
def add(a, b):
"""Add a and b"""
return a + b


def test_add():
assert add(1, 1) == 2
assert add(0, 0) == 0
assert add(1, -1) == 0
Empty file added chloetychang/__init__.py
Empty file.
8 changes: 8 additions & 0 deletions chloetychang/test_addition.py

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 excellent work

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the double comment! Please also change the PR title to something relevant to the issue 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully this is better?

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def add(a, b):
"""Add a and b"""
return a + b

def test_add():
assert add(1, 1) == 2
assert add(0, 0) == 0
assert add(1, -1) == 0