This program performs basic mathematical operations on fractions.
You can build the program with:
swift build
You can run the tests with:
swift test
You can run the program with:
swift run
You can generate an Xcode project with:
swift package generate-xcodeproj
- Fractions are stored as a numerator/denominator pair, which also includes any whole number values. Because if this the total of both the whole number and numerator that are entered cannot exceed the max platform integer value. An initial effort was made to store the numerator and whole number separately to increase this limit, but that significantly increased the complexity of all calculations.
- The various
allTests
properties do not include all tests. All tests will still run on macOS, but they will not on Linux.