Simple calculator with history and saving results in PyQt
- Operations
- 4 basics: + - * /
- History view
- History save
- create file history_calc.txt
- Input clear
- History clear
- Enter number 1:
- Enter number 2:
- Every button has tooltip:
- Input can be only a number:
- Numbers can not be devided by zero:
Class TestCalculator contains unit tests for the Calculator class.
These tests verify the functionality of the calculator's basic arithmetic operations (addition, subtraction, multiplication, and division) for various inputs, including:
- Positive and negative numbers
- Mixed combinations of positive and negative numbers
- Zero values
- Limit cases with very large or very small numbers The tests also ensure that division by zero raises a CalculatorError.
