This repository is used for teaching purposes at the University of Mons. It contains Java code for computing arithmetic expressions. The code uses design patterns and is accompanied with JavaDoc, unit tests and BDD scenarios. We have also paid particular attention to code quality.
2
stars
1
forks
source link
Improvements and extensions to the calculator's rational numbers functionality #36
This Pull Request brings significant improvements to the handling of rational numbers in the calculator by integrating new features, comprehensive testing, and fixes for a better user experience.
Added Features:
Parsing and Display of Rational Numbers:
Introduction of the RationalParser for precise interpretation of rational inputs.
Display of results in canonical form, simplifying outputs when the denominator is 1.
Addition of functionality to compute the opposite of a rational number.
Improvements and Fixes:
Modification of the rational numbers grammar and correction of textual representation.
Standardization of the text on the divide and fraction buttons for greater consistency.
Implemented Tests:
Unit Tests and Interface Tests (Cucumber):
Coverage of new features and operators with comprehensive unit tests.
Implementation of Cucumber tests to ensure the correct functioning of parsing and result display.
Addition of tests to verify the consistency of the graphical interface in rational mode.
Detailed Description of the Pull Request:
This Pull Request brings significant improvements to the handling of rational numbers in the calculator by integrating new features, comprehensive testing, and fixes for a better user experience.
Added Features:
RationalParser
for precise interpretation of rational inputs.Improvements and Fixes:
Implemented Tests: