Functionality to Implement:
Create a simple calculator that performs basic arithmetic operations: addition, subtraction, multiplication, and division.
Requirements:
Implement a class named Calculator in the /app/ directory.
The class should have the following methods:
add(a: float, b: float) -> float: Returns the sum of a and b.
subtract(a: float, b: float) -> float: Returns the result of subtracting b from a.
multiply(a: float, b: float) -> float: Returns the product of a and b.
divide(a: float, b: float) -> float: Returns the result of dividing a by b. If b is zero, it should raise a ValueError with the message "Cannot divide by zero".
Ensure the methods can handle both integer and float inputs.
Write unit tests to verify the correctness of each method to ensure they work as expected.
Once the functionalities are implemented as specified, all tests should pass successfully.