Skip to content
Open
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
9 changes: 9 additions & 0 deletions JoelWildman/test_addition.py

Choose a reason for hiding this comment

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

Will this work for vegans?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Only pescatarians I'm afraid

Copy link
Member

Choose a reason for hiding this comment

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

I'm pesca-pescatarian.... that good?

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


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