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 a test for the multiplication operation. This can be seen at test_operations.py with the function called test_multiplication.
Acceptance Criteria
the test should fail if multiplication is mathematically wrong
the test should succeed if multiplication is mathematically correct
Answer
Note: It is not expected that you know how to write tests, your goal is to understand what the below code does and perform the change on your branch that you have created and create a pull request
deftest_multiplication():
"""GIVEN: two numbersWHEN: passed in to the function multiplication THEN: the result is the multiplication of the two numbers"""assertmultiplication(3, 5) == (15)
assertmultiplication(0, 4) == (0)
assertmultiplication(1, -7) == (-7)
The text was updated successfully, but these errors were encountered:
Task
Create a test for the
multiplication
operation. This can be seen attest_operations.py
with the function calledtest_multiplication
.Acceptance Criteria
multiplication
is mathematically wrongmultiplication
is mathematically correctAnswer
Note: It is not expected that you know how to write tests, your goal is to understand what the below code 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: