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 division operation. This can be seen in test_operations.py with the function called test_modulo.
Acceptance Criteria
the test should fail if modulo is mathematically wrong
the test should succeed if modulo 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_modulo()
"""GIVEN: two numbersWHEN: passed in to the function divisionTHEN: the resulting is the division of the two numbers"""assertmodulo(8, 2) ==0assertmodulo(9, 2) ==1
The text was updated successfully, but these errors were encountered:
Task
Create the test for the division operation. This can be seen in
test_operations.py
with the function calledtest_modulo
.Acceptance Criteria
modulo
is mathematically wrongmodulo
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: