codersforcauses / codersforcauses/software-engineering-practices-demo-2024-winter
Create test for division operation
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### **Task**
Create the test for the division operation. This can be seen in ```tests/test_operations.py``` with the function called ```test_division```.
### **Acceptance Criteria**
- the test should fail if ```division``` is mathematically wrong
- the test should succeed if ```division``` 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
```
def test_division()
"""
GIVEN: two numbers
WHEN: passed in to the function division
THEN: the resulting is the division of the two numbers
"""
assert division(8, 4) == 2
assert division(3, 3) == 1
assert division(5, 1) == 5
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.