1. Testing the Solution


Students Learn About:

Testing the solution

  • the selection of appropriate test data, including:
    • data that test all the pathways through the algorithm
    • data that test boundary conditions ‘at’, ‘above’ and ‘below’ values upon which decisions are based
    • data where the required answer is known
    • data which is outside the expected values
  • the need for thorough test data
  • testing both algorithms and coded solutions with test data such as:
    • desk checking an algorithm
    • stepping through a coded solution line by line
  • peer checking
  • structured walk through


Students Learn To:

  • determine the expected result given test data





  • compare the actual output from a piece of code with the expected output from test data to detect logic errors
  • create a set of appropriate test data and use it to verify the logic in a solution 
  • perform a desk check by producing a table showing the changes to the content of variables as the algorithm or code is stepped through manually