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 exponentiation operation. This can be seen in test_operations.py with the function called test_exponentiation.
Acceptance Criteria
the test should fail if exponentiation is mathematically wrong
the test should succeed if exponentiation 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_exponentiation()
"""GIVEN: two numbersWHEN: passed in to the function divisionTHEN: the resulting is the exponentiation of the two numbers"""assertexponentiation(2, 5) ==32assertexponentiation(3, 3) ==27assertexponentiation(4, 1) ==4
The text was updated successfully, but these errors were encountered:
Task
Create the test for the exponentiation operation. This can be seen in
test_operations.py
with the function calledtest_exponentiation
.Acceptance Criteria
exponentiation
is mathematically wrongexponentiation
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: