You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create the test for the addition operation. This can be seen in test_operations.py with the function called test_addition.
Acceptance Criteria
the test should fail if addition is wrong by mathematical logic
the test should succeed if addition is correct by mathematical logic
Answer
Note: It is not expected that you know how to write tests, so the answer is this. Your goal is to understand what this does and perform the change on your branch that you have created and create a pull request
deftest_addition():
""" GIVEN: Two numbers WHEN: passed in to the function addition THEN: the resulting is the addition of the two numbers """assertaddition(1,2) ==3assertaddition(0,1) ==1assertaddition(100,23) ==123
The text was updated successfully, but these errors were encountered:
Task
Create the test for the addition operation. This can be seen in
test_operations.py
with the function calledtest_addition
.Acceptance Criteria
addition
is wrong by mathematical logicaddition
is correct by mathematical logicAnswer
Note: It is not expected that you know how to write tests, so the answer is this. Your goal is to understand what this does and perform the change on your branch that you have created and create a pull request
The text was updated successfully, but these errors were encountered: