Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page shows a variation of the Calculator project called AdvancedCalculator.This is a more extensive version of the same design. Contains new functionality in operation.cpp and therefore has more test cases.

Table of Contents

Info
titleThe source code can be find here:

https://gitlab.eufus.eu/bpogodzinski/ach-tutorials/-/tree/TDD-cpp/TDD-cpp/AdvancedCalculator


Info
titleNote

This project can be run in the same way as shown in basic use, please check this section: 2. Build the project  - CMake


1. Zero Division Error - Testing Exceptions

This section is basically the same in terms of test suites as in the Calculator project, but was not covered on the previous page.

2. Testing whether the result is within range


3. Testing boundary conditions